Learn R Programming

ggthemes (version 3.2.0)

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

Description

Theme based on the rules and examples in Stephen Few, "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

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
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 DataLab