ggthemr | R Documentation |
ggthemr provides colour schemes and layouts for ggplot2.
Set theme to be applied to all subsequent ggplots.
ggthemr( palette = "dust", layout = "clear", spacing = 1, text_size = 12, type = "inner", line_weight = 0.5, set_theme = TRUE )
palette |
Colour scheme by name or ggtheme object. |
layout |
The layout of gridlines, axes etc. |
spacing |
A numeric value of how much space should exist on any given plot. Low values will result in more cramped plots, higher values will have more whitespace. |
text_size |
base text size. |
type |
Set to 'inner' where the background colour should not extend past strictly the plot area (or 'panel' in ggplot2 terminology). 'outer' will apply the background colour to the entire plot. |
line_weight |
The thickness of axes lines and gridlines. Useful for saving plots at different resolutions. |
set_theme |
If TRUE (default), the default theme, geoms and scales are updated. |
Returns a list with a ggplot2 theme object, aesthetic parameters for geoms, scale functions and input parameters
Ciaran Tobin
ggthemr('pale', layout = 'scientific', spacing = 2, type = 'inner')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.