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

Programmatic (automatic) orientation of plot axes #9

Closed
grantmcdermott opened this issue Jul 19, 2021 · 1 comment
Closed

Programmatic (automatic) orientation of plot axes #9

grantmcdermott opened this issue Jul 19, 2021 · 1 comment

Comments

@grantmcdermott
Copy link
Owner

Looking at a way to address a long-standing issue. See nice post by @simonpcouch here: https://blog.simonpcouch.com/blog/ggplot-pipe-plus/

The TL;DR idea would be to define a new ggplot_add method (ggplot_add.geom_parttree?) that accesses the existing plot aesthetic mappings and then passes any axes information on to the underlying parttree call, probably through ...

This could then be used to switch on the flip_axes argument. Internal pseudo code would be something like:

if (quo_name(plot$mapping$x) == vars[2] && quo_name(plot$mapping$y) == vars[1]) flip_axes = TRUE
@grantmcdermott grantmcdermott changed the title Programatic (automatic) orientation of plot axes Programmatic (automatic) orientation of plot axes Jul 19, 2021
@grantmcdermott
Copy link
Owner Author

I haven't had time to implement the the new add method, but closing in light of #18.

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