c4a_plot {cols4all} | R Documentation |
Plot a color palette
Description
Plot a color palette, either a cols4all palette, or a color vector. c4a_plot_cvd
is a shortcut to include color-blind simulated colors, 'c4a_plot_hex is a shortcut to print hex codes instead of labels.
Usage
c4a_plot(
palette,
...,
dark = FALSE,
include.na = FALSE,
hex = FALSE,
include.cvd = FALSE,
nrows = NA,
ncols = NA
)
c4a_plot_cvd(...)
c4a_plot_hex(...)
Arguments
palette |
Palette name (see |
... |
arguments passed on to |
dark |
dark (black) background? |
include.na |
should a color for missing values be included? |
hex |
should hex codes be printed instead of color labels (or numbers)? |
include.cvd |
should color deficiency simulated colors be included? |
nrows , ncols |
Number of rows and columns. Ignored if |
Value
Besides the plot, a gTree
is returned silently
Examples
c4a_plot("brewer.set1", nrows=1)
c4a_plot("greens", nrows=1)
c4a_plot("tol.pu_gn", nrows=1)
c4a_plot(.P$c4a$bivs$pu_gn_bivs, n = 5)
c4a_plot(.P$c4a$bivd$pu_gn_bivd, n = 5)
c4a_plot(.P$c4a$bivg$gn_bivg, n = 5)
[Package cols4all version 0.7-1 Index]