Label and color leaf dendrogram (phylogeny) in R using ape package

后端 未结 2 917
误落风尘
误落风尘 2021-02-11 03:09

Following a previous post (Label and color leaf dendrogram in r) I have a follow-up question.

My questions are similar to the post mentioned but I wonder can it be done

2条回答
  •  借酒劲吻你
    2021-02-11 03:27

    Have a look at ?"plot.phylo":

    library("ape")
    plot(as.phylo(hc), tip.color=colorCodes[substr(rownames(sample), 1, 1)], type="fan")
    

    enter image description here

提交回复
热议问题