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
Nice package! I've been looking for something like this for a while. Noticed a bug in gplot.heatmap where the levels of the heatmap aren't reordered properly and the labels don't match up with their respective values in the heatmap.
This line in gplot.heatmap simply reorders the label:
Also, for very large heatmaps the tree and heatmap don't line up properly. It would be nice to see if this could be fixed because now it requires manually playing with the plot margins until it looks good.
Example:
t = rtree(1000)
data = as.data.frame(replicate(4, rnorm(1000)))
row.names(data) = t$tip.label
gplot(ggtree(t),data)
The text was updated successfully, but these errors were encountered:
Good catch and thanks for your report. The reorder issue has been removed in ggtree (version >=0.99.18).
For the line up issue, since that can't be supported internally in current version of ggplot2 (please refer to the Linked micromaps section in ggplot2's wishlist feature requests), gplot will output a list of ggplot2 objects and user can manual adjust them if they can't be aligned properly.
Of course, I will explore some possibilities to align them more accurately.
As for the alignment issue I did find that adding scale_x_continuous(expand = c(0, 0)) + scale_y_continuous(expand = c(0, 0)) to the tree plot allowed for better alignment.
Nice package! I've been looking for something like this for a while. Noticed a bug in
gplot.heatmap
where the levels of the heatmap aren't reordered properly and the labels don't match up with their respective values in the heatmap.This line in
gplot.heatmap
simply reorders the label:This correctly reorders the levels:
Also, for very large heatmaps the tree and heatmap don't line up properly. It would be nice to see if this could be fixed because now it requires manually playing with the plot margins until it looks good.
Example:
The text was updated successfully, but these errors were encountered: