group.tree {maptree} | R Documentation |
Observation Groups for Classification or Regression Tree
Description
Alternative to tree[["where"]]
that orders groups from left
to right in draw order.
Usage
group.tree (tree)
Arguments
tree |
object of class |
Details
Normally used with map.groups
. See example.
Value
Vector of rearranged tree[["where"]]
Author(s)
Denis White
See Also
Examples
library (rpart)
data (oregon.env.vars, oregon.grid)
group <- group.tree (clip.rpart (rpart (oregon.env.vars), best=7))
names(group) <- row.names(oregon.env.vars)
map.groups (oregon.grid, group=group)
[Package maptree version 1.4-8 Index]