removeLayer | R Documentation |
Removes a layer from an existing chart. Changes will be applied to all currently opened and future pages.
This function is a wrapper around method removeLayer
of
class LCApp
.
removeLayer(chartId, layerId)
chartId |
ID of the chart from which to remove a layer. |
layerId |
ID of the layer to remove. |
## Not run: lc_scatter(dat(x = 1:10, y = 1:10 * 2), chartId = "scatter")
lc_abLine(a = 2, b = 0, chartId = "scatter", addLayer = TRUE)
removeLayer("scatter", "Layer1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.