-
Notifications
You must be signed in to change notification settings - Fork 29
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
fixed 'type = "triangle"' error #99
Conversation
Codecov Report
@@ Coverage Diff @@
## master #99 +/- ##
==========================================
- Coverage 34.98% 34.97% -0.01%
==========================================
Files 50 50
Lines 3733 3734 +1
==========================================
Hits 1306 1306
- Misses 2427 2428 +1
Continue to review full report at Codecov.
|
Hi @houyunhuang |
I'm sorry I didn't see this until today. Here is a simple example: library(ggplot2)
library(dendextend)
library(patchwork)
library(dplyr)
dend <- mtcars %>% dist %>% hclust %>% as.dendrogram %>%
set("branches_k_color", k=3) %>% set("branches_lwd", c(1.5,1,1.5)) %>%
set("branches_lty", c(1,1,3,1,1,2)) %>%
set("nodes_pch", 19) %>% set("nodes_col", c("orange", "black", "plum", NA))
plot(dend, leaflab = "none")
ggd1 <- as.ggdend(dend, type = "triangle")
ggd2 <- as.ggdend(dend, type = "rectangle")
p1 <- ggplot(ggd1, labels = FALSE)
p2 <- ggplot(ggd2, labels = FALSE)
p1 / p2 Unfortunately, I just found that |
You just need to update the code and send another push.
If you can't find out how to do it I can look at what you sent and solve it
(but it would take me some time to get to it).
Thanks for the work :)
…On Wed, Apr 15, 2020, 16:35 houyun ***@***.***> wrote:
I'm sorry I didn't see this until today.
Here is a simple example:
library(ggplot2)
library(dendextend)
library(patchwork)
library(dplyr)
dend <- mtcars %>% dist %>% hclust %>% as.dendrogram %>%
set("branches_k_color", k=3) %>% set("branches_lwd", c(1.5,1,1.5)) %>%
set("branches_lty", c(1,1,3,1,1,2)) %>%
set("nodes_pch", 19) %>% set("nodes_col", c("orange", "black", "plum", NA))
plot(dend, leaflab = "none")
ggd1 <- as.ggdend(dend, type = "triangle")
ggd2 <- as.ggdend(dend, type = "rectangle")
p1 <- ggplot(ggd1, labels = FALSE)
p2 <- ggplot(ggd2, labels = FALSE)
p1 / p2
Unfortunately, I just found that type parameter needs to be checked (
match,arg) in the as.ggdend.dendrogram() function. But I'm not familiar
with git, could you help me improve this pr?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHOJBW36SQTOE3S57E6CK3RMWZ2XANCNFSM4MDCPK3A>
.
|
Hi @houyunhuang - any update? |
@talgalili I'm really sorry that I forgot to submit pr. Now you can test whether this bug has been fixed or not. |
Thanks @houyunhuang Please let me know if you plan any other additions to the package in the near future. Cheers, |
fixed #32