Re: [问题] dendextend package使用问题

楼主: celestialgod (天)   2015-10-27 14:26:37
※ 引述《gbd37 (有够瞎)》之铭言:
: [问题类型]:
: 程式咨询(我想用R 做某件事情,但是我不知道要怎么用R 写出来)
: [软件熟悉度]:
: 入门(写过其他程式,只是对语法不熟悉)
: [问题叙述]:
: 我想把图中的setosa(25)、versicolor(82)的(25)、(82)那些消除掉
: 仅剩下setosa、virginca、versicolor
: 以方便我再跑我的DATA容易视觉判断 谢谢Orz
: [程式范例]:
: 网址里的
: The 3 clusters from the “complete” method
: vs the real species category的CODE与图
: http://tinyurl.com/nr3g5jc
: [关键字]:dendextend、Hierarchical cluster
你可以试试看 getAnywhere("plot.dendrogram")
可以看到input
function (x, type = c("rectangle", "triangle"), center = FALSE,
edge.root = is.leaf(x) || !is.null(attr(x, "edgetext")),
nodePar = NULL, edgePar = list(), leaflab = c("perpendicular",
"textlike", "none"), dLeaf = NULL, xlab = "", ylab = "",
xaxt = "n", yaxt = "s", horiz = FALSE, frame.plot = FALSE,
xlim, ylim, ...)
要改的话就只有leaflab
只是选项式的,所以你只能用"perpendicular", "textlike", "none"其中一种
我试过无法自己修改
FYI
更多关于怎么找source code 往上找我的文章吧~~~
作者: gbd37 (我想抓波波)   2015-10-27 15:00:00
了解 我又学习了一次

Links booklink

Contact Us: admin [ a t ] ucptt.com