作者celestialgod (天)
看板R_Language
标题Re: [问题] dendextend package使用问题
时间Tue Oct 27 14:26:37 2015
※ 引述《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 往上找我的文章吧~~~
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.109.73.190
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/R_Language/M.1445927199.A.B2E.html
1F:推 gbd37: 了解 我又学习了一次 10/27 15:00