欢迎光临散文网 会员登陆 & 注册

R可视化——基于ggplot2包绘图的模板主题样式汇总

2022-09-02 09:07 作者:科研那点事儿  | 我要投稿

绘制基本散点图

图片


ggplot2默认主题

1、theme_gray()

图片

2、theme_bw()

图片

3、theme_classic()

图片

4、theme_light()

图片

5、theme_void()

图片

6、theme_linedraw()

图片

7、theme_minimal()

图片

8、theme_dark()

图片
图片


ggthemes拓展主题

1、theme_clean()

图片


2、theme_calc()

图片


3、theme_economist()

图片


4、theme_igray()

图片


5、theme_fivethirtyeight()

图片


6、theme_pander()

图片


7、theme_foundation()

图片

8、theme_base()

图片


9、theme_par()

图片


10、theme_gdocs()

图片

11、theme_map()

图片


12、theme_few()

图片

13、theme_tufte()

图片


14、theme_stata()

图片


15、theme_excel()

图片


16、theme_wsj()

图片


17、theme_hc()

图片


18、theme_solid()

图片


19、theme_solarized()

图片


ggprism包拓展主题

ggprism包绘制GraphPad prism主题样式图形:

图片


示例:

图片
图片
图片
图片
图片


BBC风格---bbplot

具体细节可参见文章:https://www.jianshu.com/p/c1436793ad67

图片


ggthemr包配置主题

使用方式:先通过ggthemr()函数设置主题,然后绘制图形即可:

1、flat

图片


2、flat dark


图片

3、solarized


图片


4、camouflage


图片

5、chalk


图片


6、copper

图片

7、dust

图片

8、earth

图片

9、fresh

图片

10、grape

图片

11、grass

图片


12、greyscale

图片

13、light

图片


14、lilac

图片

15、pale

图片

16、sea

图片

17、sky


自定义主题

通过theme()函数中不同参数自定义属于自己风格的主题,具体可参照此文章:https://www.jianshu.com/p/6cc0c17e30ce

图片



R可视化——基于ggplot2包绘图的模板主题样式汇总的评论 (共 条)

分享到微博请遵守国家法律