minimal theme for dark backgrounds

minimal theme for light backgrounds

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

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()