Re: [問題] dendextend package使用問題

看板R_Language作者 (天)時間10年前 (2015/10/27 14:26), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/3 (看更多)
※ 引述《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://www.ptt.cc/bbs/R_Language/M.1445927199.A.B2E.html

10/27 15:00, , 1F
瞭解 我又學習了一次
10/27 15:00, 1F
文章代碼(AID): #1MBnaVik (R_Language)
討論串 (同標題文章)
文章代碼(AID): #1MBnaVik (R_Language)