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

Add access to the scales at draw time using a new layer_params object #3170

Closed
wants to merge 4 commits into from

Conversation

paleolimbot
Copy link
Member

This is a PR addressing #3116, and allows access to the trained scales at draw time through a new layer_params argument to Geom$draw_layer(). This enables geometries that may require extensive loading of data to be drawn lazily (among other things). The overall structure of using a new argument to Geom$draw_layer() was discussed at length in the issue, but the details of the implementation and testing could definitely use the keen eye of those more familiar with the ggplot2 internals. Cheers!

@clauswilke
Copy link
Member

@hadley Could you take a look at the way this PR uses ggproto to generate a layer_params object (lines 210 to 220 in layer.r) and let us know if this is how you envision ggproto to be used? The alternative would be a list that contains the get_scale() function.

@clauswilke
Copy link
Member

This is temporarily on hold pending further discussion on issue #3175.

@paleolimbot
Copy link
Member Author

I'm going to close this, since #3116 should really be addressed as part of the changes required for #3175 as a whole.

@paleolimbot paleolimbot closed this Jun 4, 2019
@paleolimbot paleolimbot deleted the layer-layer-params branch June 4, 2019 20:56
@lock
Copy link

lock bot commented Dec 4, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants