View source: R/style_helpers.R
match_expr | R Documentation |
This function generates a match expression that can be used to style your data.
match_expr(column = NULL, property = NULL, values, stops, default = "#cccccc")
column |
The name of the column to use for the match expression. If specified, |
property |
The name of the property to use for the match expression. If specified, |
values |
A vector of values to match against. |
stops |
A vector of corresponding stops (colors, etc.) for the matched values. |
default |
A default value to use if no matches are found. |
A list representing the match expression.
match_expr(
column = "category",
values = c("A", "B", "C"),
stops = c("#ff0000", "#00ff00", "#0000ff"),
default = "#cccccc"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.