Learn R Programming

inlcolor (version 1.0.6)

plot.inlpal: Plot method for color palettes

Description

Plot a sequence of shaded rectangles showing colors in the palette.

Usage

# S3 method for inlpal
plot(x, ..., label = TRUE)

Value

Invisibly returns NULL, called for side effect, plotting a color palette in an R graphics device.

Arguments

x

'inlpal' object that inherits behavior from the 'character' class. Palette colors represented in hexadecimal format.

...

Not used

label

'logical' flag. Whether to include the plot title.

Author

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

Examples

Run this code
get_colors(10) |> plot()

set_hinge(c(-10, 10), hinge = 0)(20) |> plot()

Run the code above in your browser using DataLab