scale_colormap: Colormap color scales

Description Usage Arguments Details

Description

Uses the colormap color scale

Usage

1
2
3
4
5
scale_color_colormap(..., alpha = 1, colormap = colormaps$viridis,
  discrete = FALSE, reverse = FALSE)

scale_fill_colormap(..., alpha = 1, colormap = colormaps$viridis,
  discrete = FALSE, reverse = FALSE)

Arguments

...

parameters to discrete_scale or scale_fill_gradientn

alpha

pass through parameter to colormap

colormap

pass through parameter to colormap

discrete

generate a discrete palette? (default: FALSE - generate continuous palette)

reverse

pass through parameter to colormap

Details

For discrete == FALSE (the default) all other arguments are as to scale_fill_gradientn or scale_color_gradientn. Otherwise the function will return a discrete_scale with the plot-computed number of colors.

See colormap for more information on the color scale.


colormap documentation built on May 2, 2019, 10:22 a.m.