Chris Buddenhagen
2005-Sep-19 17:20 UTC
[R] library (tree)- which samples belong to each terminal branch?
Dear all What I would like to know is if there is a way to know which specific samples fall within a terminal branch created by tree? The classification summarizes data, but I want to know which specific samples fall within each classification (branch in the dendrogram). Data contains site codes and multiple fields describing the characters of a single specimen of grass growing there. Each sample is an individual plant from a site, all plants are similar to each other, but may represent different species. I classified species using tree and these are labeled by site name. The classification gives me a nice separation of supposed species in terms of only 3 sites but with some sites occurring on more than one terminal branch, this obviously summarizes one or more species/sites on each branch of the dendrogram. So back to my question, how do I find out which samples fall within each branch? Cheers Chris Buddenhagen, Botany Department, Charles Darwin Research Station, Santa Cruz,Galapagos. Mail: Charles Darwin Foundation, Casilla 17-01-3891 Avenida 6 de Diciembre N36-109 y Pasaje California Quito, ECUADOR ______________________________________________________________________ EL CONTENIDO DE ESTE MENSAJE ES DE ABSOLUTA RESPONSABILIDAD DEL AUTOR. FUNDACION CHARLES DARWIN WWW.DARWINFOUNDATION.ORG [[alternative HTML version deleted]]
Prof Brian Ripley
2005-Sep-19 19:41 UTC
[R] library (tree)- which samples belong to each terminal branch?
On Mon, 19 Sep 2005, Chris Buddenhagen wrote:> What I would like to know is if there is a way to know which specific > samples fall within a terminal branch created by tree? The classification > summarizes data, but I want to know which specific samples fall within each > classification (branch in the dendrogram).Please read the help page (as we do ask). Component `where' in the returned object tells you the information you are seeking. If you want this for new data, predict.tree has a type="where" to tell you.> Data contains site codes and multiple fields describing the characters of a > single specimen of grass growing there. Each sample is an individual plant > from a site, all plants are similar to each other, but may represent > different species. I classified species using tree and these are labeled by > site name. The classification gives me a nice separation of supposed species > in terms of only 3 sites but with some sites occurring on more than one > terminal branch, this obviously summarizes one or more species/sites on each > branch of the dendrogram. So back to my question, how do I find out which > samples fall within each branch?-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595