# NOT RUN {
data(finch.ind)
# }
# NOT RUN {
cond<-seq(1,length(sp.finch)*2, by = 2)
genus <- as.vector(unlist(strsplit(as.vector(sp.finch),"_"))[cond])
res.partvar.finch <- partvar(traits = traits.finch,
factors = cbind(sites = as.factor(as.vector(ind.plot.finch)),
species = as.factor(as.vector(sp.finch)), genus = as.factor(genus)))
res.partvar.finch
oldpar<-par()
par(mfrow = c(2,2), mai = c(0.2,0.2,0.2,0.2))
piePartvar(res.partvar.finch)
par(oldpar)
barPartvar(res.partvar.finch)
# }
Run the code above in your browser using DataLab