l_layer_raise | R Documentation |
Change the layers position within its parent layer group by
decreasing the index
of the layer by one if possible. This means
that the raised layer will be rendered after (or on top) of its sibling
layer to the left.
l_layer_raise(widget, layer)
widget |
widget path or layer object of class |
layer |
layer id. If the widget argument is of class |
0 if success otherwise the function throws an error
l_layer
, l_layer_lower
, l_layer_move
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_raise(p, l1)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.