theme_dark_bg {jcolors} | R Documentation |
minimal theme for dark backgrounds
Description
minimal theme for dark backgrounds
minimal theme for light backgrounds
Usage
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
)
Arguments
base_size |
base font size, given in pts. |
base_family |
base font family |
base_line_size |
base size for line elements |
base_rect_size |
base size for rect elements |
Examples
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()
[Package jcolors version 0.0.5 Index]