powered by
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
LCApp
removeLayer(chartId, layerId)
ID of the chart from which to remove a layer.
ID of the layer to remove.
if (FALSE) 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")
Run the code above in your browser using DataLab