group.tree | R Documentation |
Alternative to tree[["where"]]
that orders groups from left
to right in draw order.
group.tree (tree)
tree |
object of class |
Normally used with map.groups
. See example.
Vector of rearranged tree[["where"]]
Denis White
rpart
,
map.groups
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.