Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一些情节,但我制作的每个情节都有黑色方形边框?我怎样才能使这个边框变白或完全删除它?
这是我的代码
library(ggplot2) library(ggthemes) ggplot(mtcars, aes(x = mpg)) + geom_point(aes(y = hp)) + theme_clean(base_size=18)
这是我的输出图,它粘贴到油漆中并使用红色箭头指向我的图周围的黑色边框
如何删除黑色方形边框?
编辑 的plot.background元素theme,color变为白色
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" ))