| group.tree {maptree} | R Documentation |
Alternative to tree[["where"]] that orders groups from left
to right in draw order, and adds group membership of
observations to pts matrix if provided.
group.tree (tree, pts=NULL)
tree |
object of class "tree". |
pts |
vector, matrix, or data frame of length or nrow equal to
length(tree[["where"]]) to which group vector
is joined with cbind. |
Normally used with map.groups. See example.
Vector of rearranged tree[["where"]] or the cbind of pts and
this vector if pts != NULL.
Denis White, white.denis@epa.gov
library (tree)
data (hex.env, oregon)
map.groups (group.tree (prune.tree (tree (hex.env),
best=6), pts=hex.env), lns=oregon)