palettes: liminal color palettes

Description Usage Details Value See Also Examples

Description

liminal color palettes

Usage

1
2
3

Details

Vectors of colors based on the schemes available in Vega-Lite. Their main purpose is so you can use these palettes in ggplot2 graphics, so that graphs align with the limn_tour() functions.

Value

A character vector of hex color codes of length 10 or 20.

See Also

https://vega.github.io/vega/docs/schemes/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (requireNamespace("ggplot2", quietly = TRUE)) {
  library(ggplot2)
  ggplot(fake_trees, aes(x = dim1, y = dim2, color = branches)) +
    geom_point() +
    scale_color_manual(values = limn_pal_tableau10())

  ggplot(fake_trees, aes(x = dim1, y = dim2, color = branches)) +
    geom_point() +
    scale_color_manual(values = limn_pal_tableau20())
}

liminal documentation built on May 28, 2021, 9:06 a.m.