Skip to content
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

overlapping branches in ggplot radial dendrogram #81

Open
andreasleha opened this issue Aug 21, 2018 · 0 comments
Open

overlapping branches in ggplot radial dendrogram #81

andreasleha opened this issue Aug 21, 2018 · 0 comments

Comments

@andreasleha
Copy link

when creating a radial dendrogram via coord_polar the first and last leave collide (by default) at the top.

Here is the example from the help:

library(dendextend)

## Create complex dend:
dend <- iris[1:30,-5] %>%
  dist %>%
  hclust %>%
  as.dendrogram %>% 
  set("branches_k_color", k=3)
## Transfer to ggplot2
ggd1 <- as.ggdend(dend)

library(ggplot2)
## Create a radial plot:
ggplot(ggd1) + scale_y_reverse(expand = c(0.2, 0)) + coord_polar(theta="x")

Look carefully at the '12 o clock' position.

My setup:
R 3.5.1
dendextend 1.8.0
ggplot2 2.2.1.9000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant