get_layer_states {loon} | R Documentation |
Get Layer States
Description
Return the input widget states
Usage
get_layer_states(target, native_unit = TRUE, omit = NULL)
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. |
native_unit |
return numerical vectors or |
omit |
deprecated |
Details
get layer states
Examples
if(interactive()){
p <- l_plot(x = c(0,1), y = c(0,1))
l <- l_layer_rectangle(p, x = c(0,0.5), y = c(0, 0.5))
# the coordinates are in `unit`
get_layer_states(p)
# the coordinates are numerical
get_layer_states(p, native_unit = FALSE)
# get `l_layer` state
get_layer_states(l)
}
[Package loon version 1.4.1 Index]