l_cget: Query a Plot State

View source: R/l_cget.R

l_cgetR Documentation

Query a Plot State

Description

All of loon's displays have plot states. Plot states specify what is displayed, how it is displayed and if and how the plot is linked with other loon plots. Layers, glyphs, navigators and contexts have states too (also refered to as plot states). This function queries a single plot state.

Usage

l_cget(target, state)

Arguments

target

either an object of class loon or a vector that specifies the widget, layer, glyph, navigator or context completely. The widget is specified by the widget path name (e.g. '.l0.plot'), the remaining objects by their ids.

state

state name

See Also

l_configure, l_info_states, l_create_handle

Examples

if(interactive()){

p <- l_plot(iris, color = iris$Species)
l_cget(p, "color")
p['selected']
}

loon documentation built on July 9, 2023, 5:48 p.m.