001、R语言中ggplot绘图去除灰色背景并保留外围框线
library(ggplot2)data <- data.frame(x = rnorm(10),y = rnorm(10) )ggplot(data, aes(x = x, y = y)) +geom_point() +theme(panel.background = element_blank(), ## 去除灰色背景axis.line = element_line(colour = "black"),panel.border = element_rect(fill=NA,color="black", size = 1, linetype="solid")) ## 增加外围框线
。