l_layer_text | R Documentation |
Loon's displays that are based on Cartesian coordinates (i.e. scatterplot, histogram and graph display) allow for layering visual information including polygons, text and rectangles.
layer a single character string
l_layer_text(
widget,
x,
y,
text,
color = "gray60",
size = 6,
angle = 0,
label = "text",
parent = "root",
index = 0,
...
)
widget |
widget path name as a string |
x |
coordinate |
y |
coordinate |
text |
character string |
color |
color of text |
size |
size of the font |
angle |
rotation of text |
label |
label used in the layers inspector |
parent |
group layer |
index |
of the newly added layer in its parent group |
... |
additional state initialization arguments, see
|
As a side effect of Tcl
's text-based design, it is best to
use l_layer_text
if one would like to layer a single character
string (and not l_layer_texts
with n=1
).
For more information run: l_help("learn_R_layer")
layer object handle, layer id
l_layer
, l_info_states
if(interactive()){
p <- l_plot()
l <- l_layer_text(p, 0, 0, "Hello World")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.