powered by
This function generates a match expression that can be used to style your data.
match_expr(column = NULL, property = NULL, values, stops, default = "#cccccc")
A list representing the match expression.
The name of the column to use for the match expression. If specified, property should be NULL.
property
The name of the property to use for the match expression. If specified, column should be NULL.
column
A vector of values to match against.
A vector of corresponding stops (colors, etc.) for the matched values.
A default value to use if no matches are found.
match_expr( column = "category", values = c("A", "B", "C"), stops = c("#ff0000", "#00ff00", "#0000ff"), default = "#cccccc" )
Run the code above in your browser using DataLab