-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aheatmap: Line width of the tree #47
Comments
Which version are you using. Try the one on the |
I've read the vignette, but I didn't see an option to change the line width of the tree. Does it require passing an option to the |
You can pass a pre-formated dendrogram to # data
x <- rmatrix(20, 10)
# extract clustering or create it externally
a <- aheatmap(x)
hc <- a$Colv
# hc <- as.dendrogram(hclust(dist(t(x))))
# pre-format
library(dendextend)
hc <- set("nodes_pch", c(19,1,4)) %>%
set("nodes_cex", c(2,1,2)) %>%
set("nodes_col", c(3,4))
hc <- hc %>% set("branches_lwd", c(4,1)) %>%
set("branches_lty", c(1,1,3)) %>%
set("branches_col", c(1,2,3))
# plot
aheatmap(x, Colv = hc, Rowv = FALSE, main = "Custom dendrogram")
|
Dear @renozao , With regards, |
Is it possible to set the line width of the tree of aheatmap? Any other tips for producing figures for publication?
The text was updated successfully, but these errors were encountered: