powered by
To see the manual page of l_layer for all the primitive layer types.
l_layer
l_layer_getType(widget, layer)
One of: 'group', 'polygon', 'text',
'group'
'polygon'
'text'
'line', 'rectangle', 'oval', 'points',
'line'
'rectangle'
'oval'
'points'
'texts', 'polygons', 'rectangles', 'lines' and
'texts'
'polygons'
'rectangles'
'lines'
'scatterplot', 'histogram', 'serialaxes' and
'scatterplot'
'histogram'
'serialaxes'
'graph'.
'graph'
widget path or layer object of class 'l_layer'
'l_layer'
layer id. If the widget argument is of class 'l_layer' then the layer argument is not used
For more information run: l_help("learn_R_layer")
l_help("learn_R_layer")
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') }
Run the code above in your browser using DataLab