auto_map_to_palette: Use Colorspace Palettes for Map Assignment

View source: R/color.R

auto_map_to_paletteR Documentation

Use Colorspace Palettes for Map Assignment

Description

Instead of having to manually determine a map assignment, a colorspace palette can be used to auto-assign to a given vector.

Usage

auto_map_to_palette(x, colorspace_palette = "diverge_hcl", ...)

Arguments

x

Vector to map. All vectors are converted to character before mapping.

See Also

hcl_palettes

Examples

## Not run: 
if(interactive()){
  auto_map_to_color(x = as.character(x)) %>%
  view_colors()
 }

## End(Not run)

meerapatelmd/suzyBakeOven documentation built on March 30, 2022, 1:44 p.m.