tours {condvis2} | R Documentation |
Constructs a various tours of data space
Description
Constructs a various tours of data space
Usage
randomPath(data, length = 10, reorder = TRUE, conditionvars = NULL, ...)
seqPath(data, length = 10, reorder = FALSE, conditionvars = NULL, ...)
alongPath(data, var, length = 10, current = NULL, ...)
Arguments
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 |
Value
A dataframe with the path
Functions
-
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.
Examples
randomPath(mtcars,length=5)
seqPath(mtcars,length=5)
alongPath(mtcars,var="mpg", length=5, current=mtcars[1,])
[Package condvis2 version 0.1.2 Index]