Learn R Programming

ggthemes (version 3.5.0)

scale_colour_gradient_tableau: Tableau sequential colour scale (continuous)

Description

Tableau sequential colour scale (continuous)

Usage

scale_colour_gradient_tableau(palette = "Red", ..., space = "Lab",
  na.value = "grey50", guide = "colourbar")

scale_fill_gradient_tableau(palette = "Red", ..., space = "Lab", na.value = "grey50", guide = "colourbar")

scale_color_gradient_tableau(palette = "Red", ..., space = "Lab", na.value = "grey50", guide = "colourbar")

scale_color_continuous_tableau(palette = "Red", ..., space = "Lab", na.value = "grey50", guide = "colourbar")

scale_fill_continuous_tableau(palette = "Red", ..., space = "Lab", na.value = "grey50", guide = "colourbar")

Arguments

palette

Palette name. See ggthemes_data$tableau$sequential.

...

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

space

Colour space in which to calculate gradient.

na.value

Colour to use for missing values

guide

Type of legend. Use 'colourbar' for continuous colour bar, or 'legend' for discrete colour legend.

See Also

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

Examples

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

df <- data.frame(
  x = runif(100),
  y = runif(100),
  z1 = rnorm(100),
  z2 = abs(rnorm(100))
)

p <- ggplot(df, aes(x, y)) +
     geom_point(aes(colour = z2)) +
     theme_igray()

p + scale_colour_gradient_tableau("Red")
p + scale_colour_gradient_tableau("Blue")
p + scale_colour_gradient_tableau("Green")
# }

Run the code above in your browser using DataLab