Learn R Programming

loon (version 1.4.1)

l_glyph_add_text: Add a Text Glyph

Description

Each text glyph can be a multiline string.

Usage

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

l_glyph_add

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

Examples

Run this code
if(interactive()){

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

Run the code above in your browser using DataLab