Description Usage Arguments Value Examples
View source: R/l_layer_trails.R
A 2D tour path with trails
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | l_layer_trails(
widget,
x,
y,
xpre,
ypre,
color = "black",
linewidth = 1,
label = "trails",
parent = "root",
index = 0,
active = TRUE,
...
)
|
widget |
'loon' widget path name as a string |
x |
The coordinates of x representing the current state |
y |
The coordinates of y representing the current state |
xpre |
the same length of |
ypre |
the same length of |
color |
the color of the trail |
linewidth |
the line width |
label |
label used in the layers inspector |
parent |
parent group layer |
index |
of the newly added layer in its parent group |
active |
a logical determining whether points appear or not (default is |
... |
other arguments to modify |
an l_layer
widget
1 2 3 4 | if(interactive()) {
p <- l_tour(iris[, -5], color = iris$Species)
l <- l_layer_trails(p, color = "grey50")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.