Learn R Programming

plotwidgets (version 0.5.1)

showPals: Demonstrate selected palettes

Description

Show a plot demonstrating all colors in the provided palettes

Usage

showPals(pal = NULL, numbers = T)

Arguments

pal

Either a character vector of colors or a list of character vectors

numbers

On each of the colors, show a number

Examples

Run this code
# NOT RUN {
## Show all palettes in plotwidget
showPals(plotPals())

## Show just a few colors
showPals(c("red", "green", "blue"))
# }

Run the code above in your browser using DataLab