l_layer_lower: Switch the layer place with its sibling to the right

View source: R/l_layer.R

l_layer_lowerR Documentation

Switch the layer place with its sibling to the right

Description

Change the layers position within its parent layer group by increasing the index of the layer by one if possible. This means that the raised layer will be rendered before (or on below) of its sibling layer to the right.

Usage

l_layer_lower(widget, layer)

Arguments

widget

widget path or layer object of class 'l_layer'

layer

layer id. If the widget argument is of class 'l_layer' then the layer argument is not used

Value

0 if success otherwise the function throws an error

See Also

l_layer, l_layer_raise, l_layer_move

Examples

if(interactive()){

p <- l_plot()

l1 <- l_layer_rectangle(p, x=0:1, y=0:1)
l2 <- l_layer_oval(p, x=0:1, y=0:1, color='thistle')

l_aspect(p) <- 1

l_layer_lower(p, l2)

}

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