Each text glyph can be a multiline string.

l_glyph_add_text(widget, text, label = "", ...)

Arguments

widget

widget path as a string or as an object handle

text

the text strings for each observartion. If the object is a factor then the labels get extracted with as.character.

label

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

...

state arguments

See also

Examples

p <- l_plot(iris, color = iris$Species) g <- l_glyph_add_text(p, iris$Species, "test_label") p['glyph'] <- g