Skip to contents

These are custom ggplot2 themes which control all non-data display. You may further tweak components of these themes using ggplot2::theme().

Usage

theme_miplicorn(
  base_size = 10,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

theme_rainbow(
  base_size = 12,
  base_family = "",
  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, aes(x = wt, y = mpg, colour = factor(gear))) +
  geom_point() +
  facet_wrap(~am) +
  geom_smooth(method = "lm", se = FALSE)

p + theme_miplicorn()
#> `geom_smooth()` using formula 'y ~ x'

p + theme_rainbow()
#> `geom_smooth()` using formula 'y ~ x'