Description Usage Arguments Value Note See Also Examples
Re-locate Echarts Widgets (Position of Upper-left/Lower-right Point)
1 | relocWidget(chart, widgets, x = NULL, y = NULL, x2 = NULL, y2 = NULL)
|
chart |
Echarts object |
widgets |
Vector or list, could be |
x |
Vector, x-coordinates of the widgets' upper-left point |
y |
Vector, y-coordinates of the widgets' upper-left point |
x2 |
Vector, x-coordinates of the widgets' lower-right point |
y2 |
Vector, y-coordinates of the widgets' lower-right point |
A modified Echarts object
If x, y, x2, y2 are shorter in length than the list widgets,
the last element of x, y, x2, y2 will be applied to cover the rest.
If x, y, x2, y2 are longer in length than the list widgets,
the redundent elements will be dropped.
1 2 3 4 5 | ## Not run:
g = echartR(iris, Sepal.Width, Petal.Width) %>% setDataZoom()
g %>% relocWidgets('dataZoom', x=150)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.