-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Provide access to list of positional aesthetics (x_aes and y_aes in ggplot_blobal) #4135
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
Comments
To be clear, I personally have never felt I needed |
I think |
Sorry, maybe I took your comment wrong. "Export ggplot_global" seems too large.... |
It would be nice for me to have read-access to some of the variables in ggplot_global, specifically the My current workaround looks like defining the following and then setting
Which works ok and is not that much work, but if ggplot decides to change |
Just a quick remark: I consider any code using |
Sorry, I forgot to reply. Thanks for your comments! It seems we all agree to expose
So, probably will it be something like this? get_x_aes <- function() {
ggplot_global$x_aes
}
get_y_aes <- function() {
ggplot_global$y_aes
} |
Yes, I think so. Should it be |
Sounds better! By the way, I feel we now are only few steps away from providing something like |
I'm not sure about the whole thing (including adding the functions |
Thanks. I think I basically agree with you, and I too have no concrete idea about the whole thing. Let's revisit the idea when it's needed. Hope we can find some nice entry point towards #3898 in future... |
Should we close this for now in anticipation of better things to come? |
I have no strong opinions. Do you feel this is not nice enough to expose at the moment? |
It is certainly nice, but if we plan to provide a better setup altogether in the near future I think we should avoid providing a soon-to-be-superseeded feature |
Agreed. I expected #3898 didn't seem to happen in the near future, but if it (or another nicer one) will, I think we should close this, unless there's strong need for this. |
(Originally suggested at #4129 (review))
Now we refer to
x_aes
andy_aes
inggplot_global
to know which is the positional aesthetic variable. This indicates the extension packages might need this to create a custom scale. I'm not sure ifthe entire(edit: no) or it's better to create some subset of it, but anyway let's discuss.ggplot_global
should be exported@clauswilke @thomasp85 @teunbrand
Do you have any opinion or use case of
ggplot_global
in your mind?The text was updated successfully, but these errors were encountered: