Description Usage Arguments See Also Examples
Parameters provided should match those for dimple.legend constructor. If incomplete parameters are provided then some sane defaults will be applied.
1 | add_legend(viz, ...)
|
x |
|
y |
|
width |
|
height |
|
horizontalAlign |
Other dimple: add_title;
default_colors; dimple;
facet.dimple; set_bounds;
xAxis.dimple, yAxis.dimple,
zAxis.dimple
1 2 3 4 5 | dimple( weight ~ Time, groups = "Diet" , type = "line", data = ChickWeight, width = 600, height = 400 ) %>%
add_legend( )
dimple( weight ~ Time, groups = "Diet" , type = "line", data = ChickWeight, width = 600, height = 400 ) %>%
add_legend( x = 50, y = 390, width = 500, horizontalAlign = "right" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.