removeLayer: Remove a layer from a chart

Description Usage Arguments Examples

View source: R/lc.R

Description

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.

Usage

1
removeLayer(chartId, layerId)

Arguments

chartId

ID of the chart from which to remove a layer.

layerId

ID of the layer to remove.

Examples

1
2
3
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")

rlc documentation built on Jan. 5, 2022, 1:11 a.m.