A 2D tour path with trails
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
if(interactive()) { p <- l_tour(iris[, -5], color = iris$Species) l <- l_layer_trails(p, color = "grey50") }