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

Explanation of how align_plot, ggdraw, and draw_plot work together for dual-y-axis plots. #191

Open
abalter opened this issue Feb 14, 2023 · 0 comments

Comments

@abalter
Copy link

abalter commented Feb 14, 2023

I'm looking at this example. Also here.

One of the reasons I turned to cowplot is because the native ggplot sec.axis method feels hacky, especially with the confusing scaling issue. Unfortunately, I'm not following the logic in how it works in cowplot either. For example, in

ggdraw(aligned_plots[[1]]) + draw_plot(aligned_plots[[2]])

I'm confused why there isn't more symmetry between the two plots. It makes me feel like I'm doing something I'm not supposed to.

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