zenpath | R Documentation |
Constructing zenpaths and tools for extracting, connecting and displaying pairs, as well as grouping and indexing data structures.
zenpath(x, pairs = NULL,
method = c("front.loaded", "back.loaded",
"balanced", "eulerian.cross",
"greedy.weighted", "strictly.weighted"),
decreasing = TRUE)
x |
for
|
pairs |
a two-column |
method |
|
decreasing |
A |
Returns a sequence of variables (indices or names,
possibly a list of such), which can then be used to index the data
(via groupData()
for plotting via zenplot()
.
Marius Hofert and Wayne Oldford
zenplot()
which provides the zenplot.
Other tools related to constructing zenpaths:
connect_pairs()
,
extract_pairs()
,
graph_pairs()
,
groupData()
,
indexData()
## Some calls of zenpath()
zenpath(10) # integer argument
## Note that the result is of length 50 > 10 choose 2 as the underlying graph has to
## be even (and thus edges are added here)
(zp <- zenpath(c(3, 5), method = "eulerian.cross")) # integer(2) argument
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.