-
Notifications
You must be signed in to change notification settings - Fork 37
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
Cannot use trans
after using facetted_pos_scales
#137
Comments
Thanks for the report! I agree with you that his behaviour is suboptimal but I don't have a quick fix for this. library(ggh4x)
#> Loading required package: ggplot2
library(ggplot2)
ggplot(iris, aes(Sepal.Width, Sepal.Length)) +
geom_point(aes(colour = Species)) +
geom_text(aes(label = Species)) +
facet_grid(rows = vars(Species), scales = "free_y") +
facetted_pos_scales(y = list(
ggplot2::scale_y_continuous(expand = ggplot2::expansion()),
ggplot2::scale_y_continuous(expand = ggplot2::expansion()),
ggplot2::scale_y_continuous(expand = ggplot2::expansion())
), x = scale_x_reverse())
#> Warning: Attempting to add facetted x scales, while x scales are not free.
#> ℹ Try adding `scales = "free_x"` to the facet. Created on 2023-11-23 with reprex v2.0.2 |
Thank you for your response. That sounds like a good workaround. I can check if the user has provided an axis scale and then add it into the |
This works well, the axis of both bottom and left annotation has been transformed. Thanks for your help
|
I have created a pcakge to use ggplot2 in Complexheatmap deposited in https://github.com/Yunuuuu/eheat. The internal use ggh4x to create limits for each panel, everything works well except the
trans
cannot work as expected. I don't know how to deal with it. See following examplesreverse
trans:log
trans:Created on 2023-11-24 with reprex v2.0.2
Standard output and standard error
The text was updated successfully, but these errors were encountered: