首页 > 其他 > 详细

ggplot2 图例及分页参数

时间:2019-11-22 20:50:52      阅读:207      评论:0      收藏:0      [点我收藏+]

图例:

1 guides(fill = guide_legend(title = NULL))  # 去掉图例title
2 guides(fill = guide_legend(title = NULL,keywidth = 0.5,keyheight = 0.5)) #图例图标缩小
3 guides(fill=guide_legend(title = NULL,keywidth=0.6,keyheight=0.5,label.theme = element_text(size=5)))  #缩小图例文字及图标
5 
6 guides(fill=FALSE)  # 去掉图例
7 theme(legend.position="none")   # 去掉图例
8 scale_fill_discrete(guide=FALSE)  # 去掉图例

分页:

1 facet_grid(class~.,scales = "free",space = "free")
2 facet_wrap(~class,scales = "free",nrow=2)
3 
4 strip.background=element_blank() #分页背景去除

 

ggplot2 图例及分页参数

原文:https://www.cnblogs.com/mmtinfo/p/11913763.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!