Paint categorical variables by a discrete scale
1 | paint_factors(data, column, colors, type = "fill")
|
data |
data frame |
column |
name of categorical variable |
colors |
string of colors |
type |
fill or color for discrete scale |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.