Learn R Programming

aelab (version 1.1.1)

scale_colour_aelab_d: scale_colour_aelab_d

Description

Discrete ggplot2 colour scale using an aelab palette.

Usage

scale_colour_aelab_d(name, direction = 1)

scale_color_aelab_d(name, direction = 1)

Value

A ggplot2 scale.

Arguments

name

Palette name passed to aelab_palettes.

direction

1 (default) for normal order; -1 to reverse.

Examples

Run this code
if (FALSE) {
ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg, colour = factor(cyl))) +
  ggplot2::geom_point() + scale_colour_aelab_d("rainbow")
}

Run the code above in your browser using DataLab