get_color: Get predefined colors

View source: R/tools.R

get_colorR Documentation

Get predefined colors

Description

Get predefined colors

Usage

get_color(name, fill = FALSE, fill_color = "#DDDDDD", fill_n = 10)

Arguments

name

Name of color/color-vector

fill

Fill color vector?

fill_color

Color to use to fill color vector

fill_n

Number of color codes to return

Value

Vector of color-codes

Examples

get_color("mario")

get_color("mario")
show_color(get_color("mario"))
show_color(get_color("mario", fill = TRUE, fill_n = 10))

col <- get_color("mario")
explore(iris, Sepal.Length, target = Species,
  color = col)
explore(iris, Sepal.Length, target = Species,
  color = c(col["peach"], col["bowser"], col["donkeykong"]))

rolkra/explore documentation built on April 17, 2024, 10:58 p.m.