theme_jcolors: minimal theme for dark backgrounds

Description Usage Arguments Examples

Description

minimal theme for dark backgrounds

minimal theme for light backgrounds

Usage

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)

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

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

jcolors documentation built on May 22, 2019, 9:03 a.m.