tours {condvis2} | R Documentation |
Constructs a various tours of data space
randomPath(data, length = 10, reorder = TRUE, conditionvars = NULL, ...)
seqPath(data, length = 10, reorder = FALSE, conditionvars = NULL, ...)
alongPath(data, var, length = 10, current = NULL, ...)
data |
A dataframe |
length |
Path length, defaults to 10 |
reorder |
If TRUE (default) uses DendSer to reorder the path |
conditionvars |
A vector of variable names. The returned tour is for this subset of variables. |
... |
ignored |
var |
A variable name for alongPath |
current |
Default value of variables for alongPath |
A dataframe with the path
randomPath()
: Constructs a tour of data space following random observations
seqPath()
: Constructs a tour of data space following first length observations
alongPath()
: Constructs a tour of data space of length equi-spaced values in the range of var.
If var is a factor, its levels are used.
randomPath(mtcars,length=5)
seqPath(mtcars,length=5)
alongPath(mtcars,var="mpg", length=5, current=mtcars[1,])