l_info_states | R Documentation |
Loon's built-in object documentation. Can be used with every loon object that has plot states including plots, layers, navigators, contexts. This is a generic function.
l_info_states(target, states = "all")
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. |
states |
vector with names of states. |
a named nested list with one element per state. The list elements are
also named lists with type
, dimension
, defaultvalue
,
and description
elements containing the respective information.
Other loon interactive states:
l_hist()
,
l_plot()
,
l_serialaxes()
,
l_state_names()
,
names.loon()
if(interactive()){
p <- l_plot(iris, linkingGroup="iris")
i <- l_info_states(p)
names(p)
names(i)
i$selectBy
l <- l_layer_rectangle(p, x=range(iris[,1]), y=range(iris[,2]), color="")
l_info_states(l)
h <- l_hist(iris$Sepal.Length, linkingGroup="iris")
l_info_states(h)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.