Skip to contents

Create a palette, from the supplied colour values, either selecting n evenly spaced colours from the colour values, if discrete = TRUE, or an interpolated palette over the full length of the colour values.

Usage

pal_ramp(values, discrete = FALSE)

Arguments

values

Colour values

discrete

Is the palette being fitted to discrete or continuous data? The default, FALSE, interpolates a continuous colour palette from the supplied colour values, and TRUE selects n evenly spaced colours from the supplied colour values.