Learn R Programming

ggthemes (version 2.1.0)

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

Description

Theme based on the rules and examples in http://www.perceptualedge.com/articles/visual_business_intelligence/rules_for_using_color.pdf{"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

Examples

Run this code
dsamp <- diamonds[sample(nrow(diamonds), 1000), ]
(qplot(carat, price, data=dsamp, colour=clarity)
+ theme_few()
+ scale_colour_few())
(qplot(carat, price, data=dsamp, colour=clarity)
+ theme_few()
+ scale_colour_few("dark"))
(ggplot(diamonds, aes(clarity, fill=cut))
+ geom_bar()
+ theme_few()
+ scale_fill_few("light"))

Run the code above in your browser using DataLab