Description Usage Arguments Examples
minimal theme for dark backgrounds
minimal theme for light backgrounds
1 2 3 4 5 | theme_dark_bg(base_size = 12, base_family = "sans",
base_line_size = base_size/22, base_rect_size = base_size/22)
theme_light_bg(base_size = 12, base_family = "sans",
base_line_size = base_size/22, base_rect_size = base_size/22)
|
base_size |
base font size |
base_family |
base font family |
base_line_size |
base size for line elements |
base_rect_size |
base size for rect elements |
1 2 3 4 5 6 7 8 9 10 | library(ggplot2)
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
colour = factor(gear))) + facet_grid(vs~am)
p + theme_dark_bg()
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
colour = factor(gear))) + facet_grid(vs~am)
p + theme_light_bg()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.