theme
|
A character string specifying the name of the theme to apply. Themes are arranged in an approximate hierarchy, adding or subtracting elements in the order presented below. Note that several themes are dynamic, in the sense that they attempt to reduce whitespace in a way that is responsive to the length of axes labels, tick marks, etc. These dynamic plots are marked with an asterisk (*) below.
-
“default” : inherits the user’s default base graphics settings.
-
“basic” : light modification of “default” , only adding filled points, a panel background grid, and light gray background to facet titles.
-
“clean” (*): builds on “basic” by moving the subtitle above the plotting area, adding horizontal axis labels, employing tighter default plot margins and title gaps to reduce whitespace, and setting different default palettes ("Tableau 10" for discrete colors and "agSunset" for gradient colors). The first of our dynamic themes and the foundation for several derivative themes that follow below.
-
“clean2” (*): removes the plot frame (box) from “clean” ,
-
“classic” (*): connects the axes in a L-shape, but removes the other top and right-hand edges of the plot frame (box). Also sets the "Okabe-Ito" palette as a default for discrete colors. Inspired by the ggplot2 theme of the same name.
-
“bw” (*): similar to “clean” , except uses thinner lines for the plot frame (box), solid grid lines, and sets the "Okabe-Ito" palette as a default for discrete colors. Inspired by the ggplot2 theme of the same name.
-
“ipsum” (*): similar to “bw” , except subtitle is italicised and axes titles are aligned to the far edges. Inspired by the hrbrthemes theme of the same name for ggplot2.
-
“minimal” (*): removes the plot frame (box) from “bw” , as well as the background for facet titles. Inspired by the ggplot2 theme of the same name.
-
“dark” (*): similar to “minimal” , but set against a dark background with foreground and a palette colours lightened for appropriate contrast.
-
“tufte” : floating axes and minimalist plot artifacts in the style of Edward Tufte.
-
“void” : switches off all axes, titles, legends, etc.
|