R: Tableau diverging colour scales (continuous)

scale_colour_gradient2_tableau {ggthemes} | R Documentation

## Tableau diverging colour scales (continuous)

### Description

Tableau diverging colour scales (continuous)

### Usage

    scale_colour_gradient2_tableau(palette = "Red-Blue", ..., space = "rgb",
      na.value = "grey50", guide = "colourbar")

    scale_fill_gradient2_tableau(palette = "Red-Blue", ..., space = "rgb",
      na.value = "grey50", guide = "colourbar")

    scale_color_gradient2_tableau(palette = "Red-Blue", ..., space = "rgb",
      na.value = "grey50", guide = "colourbar")

### Arguments

`palette` | Palette name. See `ggthemes_data$tableau$divergent`.
`...` | 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_gradient_tableau`, `scale_colour_tableau`, `tableau_color_pal`, `tableau_div_gradient_pal`, `tableau_seq_gradient_pal`

### Examples

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

    p + scale_colour_gradient2_tableau()
    p + scale_colour_gradient2_tableau('Orange-Blue')
    p + scale_colour_gradient2_tableau('Temperature')

[Package ggthemes version 3.4.0 Index]