get_color {explore}R 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"]))

[Package explore version 1.3.1 Index]