| l_glyph_relabel {loon} | R Documentation |
Relabel Glyph
Description
Change the label of a glyph. Note that the label is only displayed in the glyph inspector.
Usage
l_glyph_relabel(widget, id, label)
Arguments
widget |
widget path as a string or as an object handle |
id |
glyph id |
label |
new label |
See Also
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_text(),
l_glyph_add(),
l_glyph_delete(),
l_glyph_getLabel(),
l_glyph_getType(),
l_glyph_ids(),
l_primitiveGlyphs()
Examples
if(interactive()){
p <- l_plot(iris, color = iris$Species)
g <- l_glyph_add_text(p, iris$Species, "test_label")
p['glyph'] <- g
l_glyph_relabel(p, g, "Species")
}
[Package loon version 1.4.1 Index]