R: Tableau diverging colour gradient palettes (continuous)

tableau_div_gradient_pal {ggthemes} | R Documentation

## Tableau diverging colour gradient palettes (continuous)

### Description

Tableau diverging colour gradient palettes (continuous)

### Usage

    tableau_div_gradient_pal(palette = "Red-Blue", space = "Lab")

### Arguments

`palette` | Palette name. See `ggthemes_data$tableau$divergent`.
`space` | Colour space in which to calculate gradient.

### See Also

Other colour tableau: `scale_colour_gradient2_tableau`, `scale_colour_gradient_tableau`, `scale_colour_tableau`, `tableau_color_pal`, `tableau_seq_gradient_pal`

### Examples

    x <- seq(-1, 1, length = 100)
    r <- sqrt(outer(x^2, x^2, '+'))
    image(r,
          col = tableau_div_gradient_pal()(seq(0, 1, length = 12)))
    image(r,
          col = tableau_div_gradient_pal('Orange-Blue')(seq(0, 1, length = 12)))
    image(r,
          col = tableau_div_gradient_pal('Temperature')(seq(0, 1, length = 12)))

[Package ggthemes version 3.4.0 Index]