You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many thanks for developing and maintaining such a useful package! When I try to plot pie charts on top of the nodes of a dendrogram, only one chart is shown. Something similar also happens when I use scale_x_reverse() or scale_y_reverse(), but with coord_flip() I get the expected result.
MRE:
# create a random tree with 5 nodes
library(ggtree)
set.seed(1)
tree <- rtree(3)
# create a pie chart for each node
data <- data.frame(node = 1:5, a = sample(1:100, 5), b = sample(1:100, 5))
pies <- nodepie(data, cols = c("a", "b"))
# Should show a the tree with 5 pie charts, but only one chart is displayed.
# Works as expected if layout_dendrogram() is removed
ggtree(tree) + layout_dendrogram() + geom_inset(pies)
Result:
Any advice on how to deal with this would be great!
The text was updated successfully, but these errors were encountered:
Prerequisites
Describe you issue
Ask in right place
Many thanks for developing and maintaining such a useful package! When I try to plot pie charts on top of the nodes of a dendrogram, only one chart is shown. Something similar also happens when I use scale_x_reverse() or scale_y_reverse(), but with coord_flip() I get the expected result.
MRE:
Result:
Any advice on how to deal with this would be great!
The text was updated successfully, but these errors were encountered: