inst/examples/ex-scale_numbers.R

library("ggplot2")

p <- ggplot(mtcars) +
  geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
  facet_wrap(~am) +
  theme_numbers()

for (palette in head(names(ggthemes_data[["numbers"]]), 3L)) {
  print(p + scale_colour_numbers(palette) + ggtitle(palette))
}

Try the ggthemes package in your browser

Any scripts or data that you put into this service are public.

ggthemes documentation built on Oct. 4, 2026, 1:06 a.m.