简介
ggthemes是ggplot2的一个扩展包,提供一些额外的themes、geoms、scales。加载该包主要作用是ggthemes提供的themes可以让我们快速画出不同背景图片。总结一下ggtheme的theme类型,方便下次快速调用。
最新版本内容关注:
https://cran.r-project.org/web/packages/ggthemes/vignettes/ggthemes.html
themes
主题名 | 描述 |
---|---|
theme_base | 类似于 ggplot 默认设置 |
theme_calc | 类似 LibreOffice Calc 图表 |
theme_economist | 类似经济类图表 |
theme_economist_white | 类似经济类图表 |
theme_excel | 类似经典excel图表 |
theme_few | 简洁型 |
theme_fivethirtyeight | 类似于 http://fivethirtyeight.com的图 |
theme_foundation | 这个主题的设计是为了基础建立新的主题,而不是直接使用。theme_foundation是一个完整的主题,只有最小的元素定义。它相比于theme_gray或theme_bw更容易通过扩展创建新的主题,因为那些主题和有着较深层次的主题定义。 |
theme_gdocs | 类似默认的 Google Docs Chart |
theme_hc | Highcharts JS |
theme_igary | 主题与白色面板和灰色背景。 |
theme_map | 一个简洁的地图主题 |
theme_pander | pander的默认主题 |
theme_solarized | 可以看 http://ethanschoonover.com/solarized 的介绍 |
theme_solarized_2 | 同上 |
theme_solid | 主题删除所有non-geom元素(线条、文本等),这个主题只有所需的几何对象。 |
theme_stata | 基于 Stata graph schemes的主题 |
theme_tufte | 基于数据墨水最大化和图形设计的Edward Tufte 定量信息的视觉显示。没有边界,没有轴线,没有网格。这个主题与geom_rug或geom_rangeframe结合效果最好。 |
theme_wsj | Wall Street Journal theme |
常用themes展示
个人感觉较为简洁风格(白色背景)
经济风格
灰色背景