l_layer_trails {loon.tourr} | R Documentation |
Display tour path with trails
Description
A 2D tour path with trails
Usage
l_layer_trails(
widget,
x,
y,
xpre,
ypre,
color = "black",
linewidth = 1,
label = "trails",
parent = "root",
index = 0,
active = TRUE,
...
)
Arguments
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 |
Value
an l_layer
widget
Examples
if(interactive()) {
p <- l_tour(iris[, -5], color = iris$Species)
l <- l_layer_trails(p, color = "grey50")
}
[Package loon.tourr version 0.1.4 Index]