l_layer_printTree | R Documentation |
Prints the layer tree (i.e. the layer ids) to the prompt. Group
layers are prefixed with a '+'
. The 'root'
layer is not
listed.
l_layer_printTree(widget)
widget |
widget path as a string or as an object handle |
empty string
l_layer
, l_layer_getChildren
, l_layer_getParent
if(interactive()){
p <- l_plot()
l_layer_rectangle(p, x=0:1, y=0:1)
g <- l_layer_group(p)
l_layer_oval(p, x=0:1, y=0:1, parent=g)
l_layer_line(p, x=0:1, y=0:1, parent=g)
l_layer_printTree(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.