Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: d7203efa44
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (51 sloc) 1.62 KB
\title{Few "Practical Rules for Using Color in Charts" color scales}
scale_colour_few(palette = "medium", ...)
scale_color_few(palette = "medium", ...)
scale_fill_few(palette = "light", ...)
\item{...}{Other arguments passed on to
\code{\link{discrete_scale}} to control name, limits,
breaks, labels and so forth.}
\item{palette}{One of "medium", "dark", or "light"}
Qualitative color scales from Stephen Few,
Rules for Using Color in Charts"}.
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"))
Other colour scales: \code{\link{scale_color_economist}},
Jump to Line
Something went wrong with that request. Please try again.