Skip to content

return a tibble with ggplot_build() and layer_data() #3264

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

Closed
wants to merge 4 commits into from
Closed

return a tibble with ggplot_build() and layer_data() #3264

wants to merge 4 commits into from

Conversation

malcolmbarrett
Copy link
Contributor

Currently, ggplot_build() and layer_data() return a data.frame. This seems a little inconsistent with the rest of the tidyverse. This is little PR (motivated by some recent work with layer_data() that filled up my console) changes ggplot_build() to convert the data for the layers to tibbles., which is also reflected in layer_data().

I also had to make a few tweaks to the tests due to some subtle differences with using a tibble. However, I think these are mostly technical and that the spirit of each test is unchanged.

@yutannihilation
Copy link
Member

Thanks, but this has been discussed on #3018 and declined.

@malcolmbarrett
Copy link
Contributor Author

Oops, missed that one. I did actually benchmark it because I was aware of the performance changes, and it was only ~2 microsecs different on my machine, but that was very limited. I'll close this for now

@lock
Copy link

lock bot commented Oct 21, 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 Oct 21, 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