loon (version 1.3.3)

l_glyph_add_pointrange: Add a Pointrange Glyph

Description

Pointrange glyphs show a filled circle at the x-y location and also a y-range.

Usage

l_glyph_add_pointrange(
  widget,
  ymin,
  ymax,
  linewidth = 1,
  showArea = TRUE,
  label = "",
  ...
)

Arguments

widget

widget path as a string or as an object handle

ymin

vector with lower y-yalue of the point range.

ymax

vector with upper y-yalue of the point range.

linewidth

line with in pixel.

showArea

boolean, show a filled point or just the outline point

label

label of a glyph (currently shown only in the glyph inspector)

...

state arguments

See Also

l_glyph_add

Other glyph functions: l_glyph_add.default(), l_glyph_add_image(), l_glyph_add_polygon(), l_glyph_add_serialaxes(), l_glyph_add_text(), l_glyph_add(), l_glyph_delete(), l_glyph_getLabel(), l_glyph_getType(), l_glyph_ids(), l_glyph_relabel(), l_primitiveGlyphs()

Examples

Run this code
# NOT RUN {
if(interactive()){

p <- l_plot(x = 1:3, color = c('red', 'blue', 'green'), showScales=TRUE)
g <- l_glyph_add_pointrange(p, ymin=(1:3)-(1:3)/5, ymax=(1:3)+(1:3)/5)
p['glyph'] <- g
}
# }

Run the code above in your browser using DataLab