Learn R Programming

ggthemes (version 3.5.0)

scale_colour_tableau: Tableau color scales.

Description

See tableau_color_pal for details.

Usage

scale_colour_tableau(palette = "tableau10", ...)

scale_fill_tableau(palette = "tableau10", ...)

scale_color_tableau(palette = "tableau10", ...)

Arguments

palette

Palette name.

...

Other arguments passed on to discrete_scale to control name, limits, breaks, labels and so forth.

See Also

tableau_color_pal for references.

Other colour tableau: scale_colour_gradient2_tableau, scale_colour_gradient_tableau, tableau_color_pal, tableau_div_gradient_pal, tableau_seq_gradient_pal

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 + scale_colour_tableau()
p + scale_colour_tableau("tableau20")
p + scale_colour_tableau("tableau10medium")
p + scale_colour_tableau("tableau10light")
p + scale_colour_tableau("colorblind10")
p + scale_colour_tableau("trafficlight")
p + scale_colour_tableau("purplegray12")
p + scale_colour_tableau("bluered12")
p + scale_colour_tableau("greenorange12")
p + scale_colour_tableau("cyclic")
# }

Run the code above in your browser using DataLab