getMarked | R Documentation |
getMarked
returns indices of the chart's elements that are currently
marked. To mark elements select them with your mouse while holding the Shift key.
Double click on the chart with the Shift key pressed will deselect all the
elements. This function is a wrapper of method getMarked
of class LCApp
.
getMarked(chartId = NULL, layerId = NULL, sessionId = NULL)
chartId |
An ID of the chart. This argument is optional if there is only one chart. |
layerId |
An ID of the layer. This argument is optional if there is only one chart with a single layer. |
sessionId |
An ID of the session from which to get the marked elements. It can be |
a vector of indices or, in the case of heatmaps, an n x 2 matrix where first and second columns contain row and column indices of the marked cells, respectively.
## Not run: data(iris)
lc_scatter(dat(x = iris$Sepal.Length, y = iris$Petal.Length))
#now mark some points by selecting them with your mouse with Shift pressed
getMarked("Chart1")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.