[R] Multiple Line Widths denextend
Worthington, Thomas A
thomas.worthington at okstate.edu
Mon Feb 2 18:20:00 CET 2015
Dear All
We are using the dendextend package to modify the plot output from a pvclust clustering
The model is created with
result <- pvclust(chord.1, method.dist="euclidian", method.hclust="average",nboot=100000)
The plot is then formatted as following
dend <- as.dendrogram(result)
dend %>%
pvclust_show_signif(result, signif_type = c("au"),alpha=0.05, signif_value = c(4, 1)) %>% set("labels_cex", c(1.5)) %>% set("labels_col", sp_col) %>%
plot(horiz=TRUE, sub="", xlab="", ylab="",xlim=c(0.31, -0.17), ylim= c(3.5,93))
We are using the pvclust_show_signif function to set the line weight to '4' of pvclust branches with an alpha of less than 0.05. Is it possible to set multiple line weights for different alpha values e.g. lwd = 8 when alpha = 0.05 and lwd = 4 when alpha = 0.1?
Best wishes
Tom
More information about the R-help
mailing list