Skip to contents

Add OJO styling to a ggplot

Usage

ojo_color(numbers = 1:8)

Arguments

numbers

A vector of numbers to use for the color palette

Examples

if (FALSE) { # \dontrun{
ggplot(ojo_example, aes(file_year, n_cases, color = court)) +
  geom_line(size = 1.5) +
  theme_ojo() +
  ojo_color() +
  scale_x_continuous(
    breaks = 2010:2019,
    limits = c(NA, 2019)
  )
} # }