powered by
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^2
pal
n = "all"
pal_n_sq(n = "all", pal = pal_ds4psy)
The desired number colors of pal (as a number) or the character string "all" (to get all colors of pal). Default: n = "all".
"all"
A color palette (as a data frame). Default: pal = pal_ds4psy.
pal = pal_ds4psy
Use the more specialized function unikn::usecol for choosing n dedicated colors of a known color palette.
unikn::usecol
n
plot_tiles to plot tile plots.
plot_tiles
Other color objects and functions: pal_ds4psy
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)
Run the code above in your browser using DataLab