你好,我正在尝试去掉ggplot在我的图表周围放置的框。
以下是一些代码:
d = data.frame(x=rep(1:5,2), y=gl(2,5), height=abs(rnorm(10)))
ggplot(d, aes(x, y, height = height, group = y)) +
geom_ridgeline(fill="black", colour="white") +
theme(panel.grid = element_blank(), panel.background = element_rect(fill = "#000000"), plot.background = element_rect(fill = "#000000"))
生成这张图片:
我想要去掉绕着我的图形的小灰线。
最初的回答:
You can remove the border by adding the following line of code:
plt.rcParams["axes.edgecolor"] = "white"