pal_n_sq | R Documentation |
pal_n_sq
returns n^2
dedicated colors of a color palette pal
(up to a maximum of n = "all"
colors).
pal_n_sq(n = "all", pal = pal_ds4psy)
n |
The desired number colors of pal (as a number)
or the character string |
pal |
A color palette (as a data frame).
Default: |
Use the more specialized function unikn::usecol
for choosing
n
dedicated colors of a known color palette.
plot_tiles
to plot tile plots.
Other color objects and functions:
pal_ds4psy
pal_n_sq(1) # 1 color: seeblau3
pal_n_sq(2) # 4 colors
pal_n_sq(3) # 9 colors (5: white)
pal_n_sq(4) # 11 colors (6: white)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.