ggplot(data1, aes(v1, v2)) + geom_point() + theme_bw() # theme_bw()主题。 ggplot(data1, aes(v1, v2)) + geom_point() + theme_linedraw() # theme_linedraw() ggplot(data1, aes(v1, v2)) + geom_point() + theme_light() # theme_light() ggplot(data1, aes(v1, v2)) ...
theme_grey()为默认主题,theme_bw()为白色背景主题,theme_classic()为经典主题。 p+theme_bw()+labs(subtitle="Change theme_bw") ggplot2 扩展包主题 library(ggthemes)p+theme_economist() +labs(subtitle="Change theme_economist") #其他可选theme_economist theme_economist_whitetheme_wsj theme_exceltheme...
theme_grey()为默认主题,theme_bw()为白色背景主题,theme_classic()为经典主题。 代码语言:javascript 复制 p+theme_bw()+labs(subtitle="Change theme_bw") ggplot2 扩展包主题 代码语言:javascript 复制 library(ggthemes)p+theme_economist()+labs(subtitle="Change theme_economist")#其他可选#theme_economist...
二、theme_bw() 主题 pgplot + theme_bw() theme_bw() 主题 三、theme_classic() 主题 pgplot + theme_classic() theme_classic()
1、 GridControl GridView 修改表格中的标题居中 依次选择顺序如下: Grid Designer>Views>Appearance>Header...
theme_bw : 白色背景色和灰色网格线 theme_linedraw : 图周围的黑线 theme_light : 浅灰色的线条和轴(更多关注数据) theme_minimal:无背景注释 theme_classic:具有轴线且没有网格线的主题 theme_void:空主题,对于具有非标准坐标的图或工程图很有用
ggplot2有多个内置主题。其中默认主题是theme_grey(),淡灰色背景和白色网格线。除此之外还有很多其他主题 theme_bw(): 是theme_grey()的变体,白色背景和灰色网格线 theme_linedraw(): 白色背景黑色线条 theme_light(): 和theme_linedraw()很像,区别是线条为灰色 ...
输入?theme可以看到theme()功能的大量参数,可以实现与外观相关的大多数要求。其中有四种主要类型: element_text():使用element_text()函数设置基于文本的组件,如title,subtitle 和caption等。 element_line():使用element_line()设置基于线的组件,如轴线,主网格线和次网格线等。
1、theme_gray() p1<-p+theme_gray()+ggtitle("theme_gray()")+theme(legend.position='none')p1 2、theme_bw() p2<-p+theme_bw()+ggtitle("theme_bw()")+theme(legend.position='none')p2 3、theme_classic() p3<-p+theme_classic()+ggtitle("theme_classic()")+theme(legend.position='none'...
theme_bw() ggarrange(p1,p2,p3,ncol = 3) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 因为三个图的图例是一样的,我们完全可以只显示一个图例就够了。 这里拼图使用的函数是ggpubr这个包里的ggarrange()函数,这个函数里有一个参数是common.le...