palette_increase_length: increases length of palette by repeating colours

View source: R/palette.R

palette_increase_lengthR Documentation

increases length of palette by repeating colours

Description

works for any vector

Usage

palette_increase_length(palette = palette_qualitative(), n = 100)

Arguments

palette

any vector, Default: palette_qualitative()

n

int, length, Default: 100

Value

vector with increased length

Examples


require(magrittr)

length(palette_qualitative())

palette_qualitative() %>%
  palette_increase_length(100) %>%
  length()

easyalluvial documentation built on May 29, 2024, 5:32 a.m.