Skip to contents

Return a color palette with option to center diverging palettes

Usage

ggeopal_center(n, center, params)

Arguments

n

Number of colors

center

Where is the center (counted from the left). Use -1 for non diverging palettes.

params

Parameters to pass on to paletteer

Value

A vector of colors