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