generate_highcontrast_palette2: Generate a color palette suitable for stacked bar plots given...

View source: R/visuals.R

generate_highcontrast_palette2R Documentation

Generate a color palette suitable for stacked bar plots given a feature number (S) This version uses the Polychrome package in R and (I think) gives a more visually parsable result

Description

Generate a color palette suitable for stacked bar plots given a feature number (S) This version uses the Polychrome package in R and (I think) gives a more visually parsable result

Usage

generate_highcontrast_palette2(
  S,
  seed_colors_hex = c("#ff0000", "#00ff00", "#0000ff")
)

Arguments

S

number of features (colors to generate)

seed_colors_hex

optional list of hex colors to seed function with

Value

list of hex colors


kimberlyroche/rulesoflife documentation built on May 7, 2023, 11:08 a.m.