plot.inlpal {inlcolor} | R Documentation |
Plot method for color palettes
Description
Plot a sequence of shaded rectangles showing colors in the palette.
Usage
## S3 method for class 'inlpal'
plot(x, ..., label = TRUE)
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. |
Value
Invisibly returns NULL
, called for side effect,
plotting a color palette in an R graphics device.
Author(s)
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
Examples
get_colors(10) |> plot()
set_hinge(c(-10, 10), hinge = 0)(20) |> plot()
[Package inlcolor version 1.0.6 Index]