ggplot2 中去除边框线和背景色的一些操作.docxVIP

  • 703
  • 0
  • 约 8页
  • 2018-03-24 发布于河南
  • 举报

ggplot2 中去除边框线和背景色的一些操作.docx

ggplot2 中去除边框线和背景色的一些操作

ggplot2 中去除边框线和背景色的一些操作library(ggplot2)########################################################p1 - ggplot(diamonds, aes(x = color))p2 - p1 + layer( geom = bar, geom_params = list(fill = blue, colour = yellow), stat = bin, stat_params = list(binwidth = 2) )# 去除背景色p_remove_bg - p2 + theme_bw()p_remove_bg# 去除网格线p_remove_grid - p2 + theme(panel.grid.major = element_blank(), panel.grid.minor = element_blank())p_remove_grid# remove border linesp_remove_border - p2 + theme(panel.border = element_blank())p_remove_border# 去除背景色和 边框p_remove_two - p2 + theme(panel.background = element_

文档评论(0)

1亿VIP精品文档

相关文档