trek_pal | R Documentation |
Return a predefined Star Trek color palette from the trekpals
dataset.
trek_pal(palette, reverse = FALSE)
view_trek_pals(palette)
palette |
character, name of predefined palette. If missing, return all available palette names. |
reverse |
logical, reverse color order. |
Many of the palettes are qualitative, and not necessarily evenly spaced in terms of hue, saturation or brightness. This is because many palettes come from logos, symbols, insignia and other simple representations. However, several palettes have specifically been constructed as sequential or divergent if it made sense to do so based on the dominant colors present. Additional special functions exist for the subset of LCARS palettes.
character vector of hex colors or palette names
lcars_pals()
, scale_lcars()
trek_pal("lcars_2357")
# leave palette blank to list available names:
trek_pal()
# to view all palettes
view_trek_pals()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.