View source: R/l_currenttags.R
l_currenttags | R Documentation |
Retrieves the tags of the visual item that at the time of the function evaluation is below the mouse cursor.
l_currenttags(widget)
widget |
widget path as a string or as an object handle |
For more details see l_help("learn_R_bind.html#item-bindings")
vector with item tags of visual
l_bind_item
, l_currentindex
if(interactive()){
printTags <- function(W) {
print(l_currenttags(W))
}
p <- l_plot(x=1:3, y=1:3, title='Query Visual Item Tags')
l_bind_item(p, 'all', '<ButtonPress>', function(W)printTags(W))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.