data(charadriiformes)
## Creating a dispRity object from the charadriiformes model
MCMCglmm.subsets(data = charadriiformes$data,
posteriors = charadriiformes$posteriors)
## Same but selecting only the three first random terms
MCMCglmm.subsets(data = charadriiformes$data,
posteriors = charadriiformes$posteriors,
tree = charadriiformes$tree,
group = MCMCglmm.levels(
charadriiformes$posteriors)[1:3],
rename.groups = c("gulls", "plovers", "sandpipers"))
Run the code above in your browser using DataLab