plotColors: Plot colors from R's color palette

View source: R/plotColors.R

plotColorsR Documentation

Plot colors from R's color palette

Description

This function takes a color name -or more- as argument (e.g. "green") and displays all the variants of this color that R knows about. This way one can choose the most aesthetically pleasing colors to use for his/her plot.

Usage

plotColors(x)

plotColours(x)

Arguments

x

One or more color names (as a character vector)

Details

The function matches x to the color names that colors returns, and then plots nice rectangles each filled with a matching color and labelled with the respective color name.

Value

Nothing

Examples

plotColors("sea")
plotColors(c("green","yellow"))


thlytras/Rivets documentation built on April 16, 2024, 5:43 a.m.