as.taxo {ade4} | R Documentation |
This function creates an object of class taxo
that is a sub-class of data.frame
. Each column of the data frame must be a factor corresponding to a level j of the taxonomy (genus, family, ...).
The levels of factor j define some classes that must be completly included in classes of factor j+1.
as.taxo(df)
df |
a data frame |
Returns a data frame of class taxo
.
Daniel Chessel chessel@biomserv.univ-lyon1.fr
Sébastien Ollier ollier@biomserv.univ-lyon1.fr
taxo2phylog
to transform an object of class taxo
into an object of class phylog
data(taxo.eg) tax <- as.taxo(taxo.eg[[1]]) tax.phy <- taxo2phylog(as.taxo(taxo.eg[[1]])) par(mfrow = c(1,2)) plot.phylog(tax.phy, clabel.l = 1.25, clabel.n = 1.25, f = 0.75) plot.phylog(taxo2phylog(as.taxo(taxo.eg[[1]][sample(15),])), clabel.l = 1.25, clabel.n = 1.25, f = 0.75) par(mfrow = c(1,1))