View source: R/color_data.R View source: R/archive/data.R View source: R/archive/color_data.R
color_data | R Documentation |
Assigns a color to the data x
based on the color palette colpal
.
color_data(x, colpal = grDevices::hcl.colors, select = NULL, ..., title = NULL)
x |
vector, matrix, or data frame |
colpal |
color palette (default: grDevices::hcl.colors) |
select |
vector: indicating columns to select (default: |
... |
further parameters to factor_data |
title |
character: title attribute (default |
a color vector
color_data(iris) color_data(iris$Species)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.