我有以下的图表:
通过执行以下命令得到:
ggplot() +
stat_summary( data = test_data1, aes(x=x, y=(1-value) , colour = as.factor(1) , lty = as.factor(1) ) , fun.y=mean, geom="line" , size=1 ) +
stat_summary( data = test_data1, aes(x=x, y=(1-value) , colour = as.factor(1), shape=as.factor(1) ) , fun.y=mean, geom="point" , size=3, pch=21, fill="white" ) +
stat_summary( data = test_data2, aes(x=x, y=(1-value) , colour = as.factor(2), lty = as.factor(2) ) , fun.y=mean, geom="line", size=1 ) +
stat_summary( data = test_data2, aes(x=x, y=(1-value) , colour = as.factor(2), shape=as.factor(2)) , fun.y=mean, geom="point", size=3, pch=21, fill="white" ) +
theme_bw(base_size = 14, base_family = "Palatino") +
theme(legend.key = element_blank() ) +
expand_limits(x=c(0), y=c(0)) +
facet_grid(distance ~ . )
我该如何消除出现在100
和200
后面的灰色背景?
我希望这个背景变为白色,但不想改变我当前使用的主题中的其他部分。