ggthemes (version 3.5.0)

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

Description

Theme based on the rules and examples from Stephen Few's Show Me the Numbers and "Practical Rules for Using Color in Charts".

Usage

theme_few(base_size = 12, base_family = "")

Arguments

base_size

base font size

base_family

base font family

References

Few, S. (2012) Show Me the Numbers: Designing Tables and Graphs to Enlighten. 2nd edition. Analytics Press.

Stephen Few, "Practical Rules for Using Color in Charts", http://www.perceptualedge.com/articles/visual_business_intelligence/rules_for_using_color.pdf.

Examples

Run this code
# NOT RUN {
library("ggplot2")

p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
    colour = factor(gear))) + facet_wrap(~am)
p + theme_few() + scale_colour_few()
p + theme_few() + scale_colour_few("light")
p + theme_few() + scale_colour_few("dark")
# }

Run the code above in your browser using DataCamp Workspace