aa.d <- hclust(dist(t(atmospheres)))
tree <- ape::unroot(ape::as.phylo(aa.d))
cl <- data.frame(
planet=c(
"Mercury",
"Venus",
"Earth",
"Mars",
"Jupiter",
"Saturn",
"Uranus",
"Neptune"),
clade=c(
"Mercury",
"Mars group",
"Earth",
"Mars group",
"Close giants",
"Close giants",
"Distant giants",
"Distant giants"),
stringsAsFactors=FALSE)
Plot.phylocl(tree, cl, longer="5%", ct.off=0.1)
Run the code above in your browser using DataLab