ggplot2 中绘图清空 x轴或者y轴的title

 

001、基础绘图

library(ggplot2)
p <- ggplot(faithful, aes(x = eruptions, y = waiting)) + 
  geom_point()
p  

 

02、清空x轴title

p + theme(axis.title.x =element_blank())     ## 清空x轴title

 

 

posted @ 2023-11-23 22:48  小鲨鱼2018  阅读(236)  评论(0)    收藏  举报