l_layer_getType: Get layer type

View source: R/l_layer.R

l_layer_getTypeR Documentation

Get layer type

Description

To see the manual page of l_layer for all the primitive layer types.

Usage

l_layer_getType(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

Details

For more information run: l_help("learn_R_layer")

Value

One of: 'group', 'polygon', 'text', 'line', 'rectangle', 'oval', 'points', 'texts', 'polygons', 'rectangles', 'lines' and 'scatterplot', 'histogram', 'serialaxes' and 'graph'.

See Also

l_layer

Examples

if(interactive()){

p <- l_plot()
l <- l_layer_rectangle(p, x=0:1, y=0:1)
l_layer_getType(p, l)
l_layer_getType(p, 'model')

}

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