need_colors: Title color palettes created by douyin dadongsheji, I use...

View source: R/need_color.R

need_colorsR Documentation

Title color palettes created by douyin dadongsheji, I use colors package a R packages

Description

Title color palettes created by douyin dadongsheji, I use colors package a R packages

Usage

need_colors(colpal, ncol = NULL, style = "china")

Arguments

colpal

a valid color palette name(color number + id,such as 'two1',can see disco()) or a numberic vector that can select color randomly.

ncol

when set the colpal names, ncol set how many color you need

style

default parameter, Ancient Chinese style is can't change

Value

a vector of color code

Examples

need_colors(9)
need_colors("nine1",8)
need_colors("two2",2)

wangjiaxuan666/xbox documentation built on Sept. 4, 2024, 5:03 p.m.