Skip to contents

Create a ggplot object of a color palette.

Usage

ggPalette(pal)

Arguments

pal

<character or numeric>: color palette in Hexadecimal, R color or RGB format.

Value

a ggplot object.

Details

ggPalette

Examples

pal <- Hue(paletteLength.num=5)
ggPalette(pal)
#> Warning: Use of `data.dtf$x` is discouraged. Use `x` instead.
#> Warning: Use of `data.dtf$y` is discouraged. Use `y` instead.
#> Warning: Use of `data.dtf$x` is discouraged. Use `x` instead.
#> Warning: Use of `data.dtf$x` is discouraged. Use `x` instead.
#> Warning: Use of `data.dtf$y` is discouraged. Use `y` instead.