l_layer_trails: Display tour path with trails

Description Usage Arguments Value Examples

View source: R/l_layer_trails.R

Description

A 2D tour path with trails

Usage

 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,
  ...
)

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 x representing the last state

ypre

the same length of y representing the last state

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 TRUE for all points). If a logical vector is given of length equal to the number of points, then it identifies which points appear (TRUE) and which do not (FALSE).

...

other arguments to modify l_layer_line.

Value

an l_layer widget

Examples

1
2
3
4
if(interactive()) {
p <- l_tour(iris[, -5], color = iris$Species)
l <- l_layer_trails(p, color = "grey50")
}

loon.tourr documentation built on Oct. 27, 2021, 5:09 p.m.