ColorMapping.RdConstructor Method for ColorMapping Class
ColorMapping(name, colors = NULL, levels = NULL, col_fun = NULL, breaks = NULL, na_col = "#FFFFFF")
| name | Name for this color mapping. The name is automatically generated if it is not specified. |
|---|---|
| colors | Discrete colors. |
| levels | Levels that correspond to |
| col_fun | Color mapping function that maps continuous values to colors. |
| breaks | Breaks for the continuous color mapping. If |
| na_col | Colors for |
colors and levels are used for discrete color mapping, col_fun and
breaks are used for continuous color mapping.
A ColorMapping-class object.
#> Discrete color mapping: #> name: color_mapping_1 #> levels: #> [1] "A" "B" #> #> colors: #> [1] "#FF0000FF" "#000000FF" #>require(circlize)#>#> #> #> #> #> #> #> #> #> #>