Description Usage Arguments See Also Examples
Modify colors used in Dimple charts
1 | default_colors(viz, ...)
|
viz |
a dimple object |
colors |
a vector of colors in hex or a |
Other dimple: add_legend
;
add_title
; dimple
;
facet.dimple
; set_bounds
;
xAxis.dimple
, yAxis.dimple
,
zAxis.dimple
1 2 3 4 5 6 7 | ChickWeight %>%
dimple( x = c("Time", "Diet"), y = "weight", groups = "Diet", type = "bar" ) %>%
defaultColors( rainbow(10) )
ChickWeight %>%
dimple( x = c("Time", "Diet"), y = "weight", groups = "Diet", type = "bar" ) %>%
defaultColors( htmlwidgets::JS( 'd3.scale.category10()' ) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.