Skip to contents

S3 method for objects of class "palette". Renders the palette as a row of colored tiles labeled with the palette name.

Usage

# S3 method for class 'palette'
print(x, ...)

Arguments

x

A "palette" object as returned by era.brewer.

...

Unused.

Value

A ggplot object: a row of colored tiles labeled with the palette name. Rendered when auto-printed at the top level or when further composed with ggplot2 layers.

Examples

print(era.brewer("Lover2"))