pal_n_sq

0th

Percentile

Get n-by-n dedicated colors of a color palette.

pal_n_sq returns n^2 dedicated colors of a color palette pal (up to a maximum of n = "all" colors).

Usage
pal_n_sq(n = "all", pal = pal_ds4psy)
Arguments
n

The desired number colors of pal (as a number) or the character string "all" (to get all colors of pal). Default: n = "all".

pal

A color palette (as a data frame). Default: pal = pal_ds4psy.

Details

Use the more specialized function unikn::usecol for choosing n dedicated colors of a known color palette.

See Also

plot_tiles to plot tile plots.

Other color objects and functions: pal_ds4psy

Aliases
  • pal_n_sq
Examples
# NOT RUN {
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)

# }
Documentation reproduced from package ds4psy, version 0.1.0, License: CC BY-SA 4.0

Community examples

Looks like there are no examples yet.