l_layer_oval: Layer a oval

Description Usage Arguments Details Value See Also Examples

View source: R/l_layer.R

Description

Loon's displays that are based on Cartesian coordinates (i.e. scatterplot, histogram and graph display) allow for layering visual information including polygons, text and rectangles.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
l_layer_oval(
  widget,
  x,
  y,
  color = "gray80",
  linecolor = "black",
  linewidth = 1,
  label = "oval",
  parent = "root",
  index = 0,
  ...
)

Arguments

widget

widget path name as a string

x

x coordinates

y

y coordinates

color

fill color, if empty string "", then the fill is transparant

linecolor

outline color

linewidth

linewidth of outline

label

label used in the layers inspector

parent

group layer

index

of the newly added layer in its parent group

...

additional state initialization arguments, see l_info_states

Details

For more information run: l_help("learn_R_layer")

Value

layer object handle, layer id

See Also

l_layer, l_info_states

Examples

1
2
3
4
5
6
7
if(interactive()){

p <- l_plot()
l <- l_layer_oval(p, c(1,5), c(2,12), color='steelblue')
l_configure(p, panX=0, panY=0, deltaX=20, deltaY=20)

}

loon documentation built on June 14, 2021, 9:07 a.m.