Description Usage Arguments Value See Also Examples
Modify plot elements that relate to the legend. The c3 legend is on by default, this function allows the legend to be removed, or other legend attributes to be set.
1 2 3 4 5 6 |
c3 |
c3 htmlwidget object |
hide |
boolean or character of parameters to hide |
position |
character one of 'bottom', 'right', 'inset' |
inset |
list with options:
|
item |
list with options:
|
... |
additional options passed to the legend object |
c3
Other c3: RColorBrewer
, c3
,
grid
, region
,
subchart
, tooltip
,
xAxis
, zoom
1 2 3 4 | iris %>%
c3(x='Sepal_Length', y='Sepal_Width', group = 'Species') %>%
c3_scatter() %>%
legend(position = 'right')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.