-
Notifications
You must be signed in to change notification settings - Fork 171
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
Ggtree fails to display boxplots with high values #96
Comments
> p <- ggtree:::add_panel(p, 'Boxplot')
> df = p %+>% d5
> head(df)
label branch.length y isTip .panel val
1 t1 0.1369876 4 TRUE Boxplot 2722.792
2 t1 0.1369876 4 TRUE Boxplot 2606.299
3 t1 0.1369876 4 TRUE Boxplot 2707.818
4 t1 0.1369876 4 TRUE Boxplot 2769.059
5 t1 0.1369876 4 TRUE Boxplot 2623.170
6 t1 0.1369876 4 TRUE Boxplot 2845.702
> ggplot(df) + geom_boxploth(aes(x=val, y=label, group=label)) -> p1
> ggplot(df) + geom_boxploth(aes(x=val, y=y, group=label)) -> p2
> multiplot(p1, p2, ncol=2) This seems to be an issue of |
It seems to work fine with latest ggstance/ggplot2. |
I am also having this issue with these versions:
not sure what's going on but I'm getting the same behaviour as @seth-1 describes. |
I get the same error. A temporary workaround that works for me is to divide all data in the right panel by 10000. My guess is that the y coordinate is not transferred correctly. Because if the right figure data goes larger as the number of tips it goes crazy. If it is smaller it is fine.
|
could you post your R version please? ggstance fails CRAN's checks with old versions of R, this may be related. |
sessionInfo() locale: attached base packages: other attached packages: |
Hi all. Could you confirm that with the latest ggstance version (the one on github as it has not yet been sent to CRAN), the issue is fixed? |
The scaling issue looks like resolved, at least for me. Thanks! By the way, is there any way to get an axis on the horizontal boxplot atm? |
I'm not sure what you mean? But anything that is possible with vertical boxplots should be possible with horizontal ones, otherwise it's presumably a bug. |
@lionel- here is another example, https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bioc-ggtree/RgI8M4DDBT8/7Kp-hyNqAQAJ. Although |
Can you open an issue with a small reprex at the ggstance repo please. |
Hi! Thanks for creating this great package!
I tried to combine a boxplot and a tree using facet_plot. Unfortunately, when displaying boxplots with high values, the plot seems to adjust ylim automatically so the plot 'disappears'.
Correct plot
Compressed plot
The text was updated successfully, but these errors were encountered: