l_layer_printTree: Print the layer tree

View source: R/l_layer.R

l_layer_printTreeR Documentation

Print the layer tree

Description

Prints the layer tree (i.e. the layer ids) to the prompt. Group layers are prefixed with a '+'. The 'root' layer is not listed.

Usage

l_layer_printTree(widget)

Arguments

widget

widget path as a string or as an object handle

Value

empty string

See Also

l_layer, l_layer_getChildren, l_layer_getParent

Examples

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)

}

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