l_layer_getChildren | R Documentation |
Returns the ids of a group layer's children.
l_layer_getChildren(widget, layer = "root")
widget |
widget path or layer object of class |
layer |
layer id. If the widget argument is of class |
Character vector with ids of the childrens. To create layer handles
(i.e. objects of class 'l_layer'
) use the
l_create_handle
function.
l_layer
, l_layer_getParent
if(interactive()){
p <- l_plot()
g <- l_layer_group(p)
l1 <- l_layer_rectangle(p, x=0:1, y=0:1, parent=g)
l2 <- l_layer_oval(p, x=0:1, y=0:1, color='thistle', parent=g)
l_layer_getChildren(p, g)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.