FruityPebblePug:
我正在创建一些图,但是我制作的每个图都有一个黑色正方形边框?如何使边框变白或完全删除?
这是我的代码
library(ggplot2)
library(ggthemes)
ggplot(mtcars, aes(x = mpg)) +
geom_point(aes(y = hp)) +
theme_clean(base_size=18)
这是我的输出图,粘贴到绘画中,并使用红色箭头指向我图周围的黑色边框
如何删除黑色方形边框?
格雷格:
编辑的plot.background
元素theme
,更改color
为白色
library(ggplot2)
library(ggthemes)
data(mtcars)
ggplot(mtcars, aes(x = mpg)) +
geom_point(aes(y = hp)) +
theme_clean() +
theme(plot.background = element_rect(
color = "white"
))
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
编辑于
我来说两句