Examples for 'ggthemes::theme_few'


Theme based on Few's "Practical Rules for Using Color in Charts"

Aliases: theme_few

Keywords:

### ** Examples

library("ggplot2")
Want to understand how all the pieces fit together? Read R for Data
Science: https://r4ds.had.co.nz/
p <- ggplot(mtcars) +
  geom_point(aes(x = wt, y = mpg, colour = factor(gear))) +
  facet_wrap(~am)
p + theme_few() + scale_colour_few()
plot of chunk example-ggthemes-theme_few-1
p + theme_few() + scale_colour_few("Light")
plot of chunk example-ggthemes-theme_few-1
p + theme_few() + scale_colour_few("Dark")
plot of chunk example-ggthemes-theme_few-1
ggplot(mtcars) +
  geom_point(aes(x = wt, y = mpg, shape = factor(gear))) +
  theme_few() +
  scale_shape_few()
plot of chunk example-ggthemes-theme_few-1

[Package ggthemes version 4.2.4 Index]