plotpal: Visualize color palette in a barplot

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotpal.R

Description

plotpal allows you to easily visualize a color palette by plotting the specified palette using a barchart

Usage

1
plotpal(colors, hex.labels = FALSE, space = NULL, border = colors)

Arguments

colors

vector of hex colors

hex.labels

logical, should the colors hex label be shown on the plot

space

numeric giving space between color bars

border

color of borders for bars

Value

plotpal returns a barchart showing the specified colors

Author(s)

Michael Malick

See Also

qpal dpal spal

Examples

1
2
3
4
plotpal(qpal(10))
plotpal(qpal(100))
plotpal(c("#00A0ED", "#F15A8F", "#4FA500"))
plotpal(qpal(10), border = "grey50", space = 0)

MichaelMalick/r-chroma documentation built on May 7, 2019, 4:56 p.m.