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

Provide a generic for plots to generate patchwork-compliant tables #193

Open
thomasp85 opened this issue Jun 17, 2020 · 3 comments
Open
Labels
feature a feature request or enhancement

Comments

@thomasp85
Copy link
Owner

No description provided.

@baderstine
Copy link

FYI: it doesn't seem possible to put a gridExtra::tableGrob(...) as the first element in the list of plots?

p1 <- ggplot(mtcars) + 
  geom_point(aes(mpg, disp)) + 
  ggtitle('Plot 1')
  
gridExtra::tableGrob(mtcars[1:10, c('mpg', 'disp')]) + p1

@liutiming
Copy link

@baderstine thanks! this is actually a life saver :)

@thomasp85
Copy link
Owner Author

no, you generally have to wrap elements in wrap_elements() if they appear as the first due to how R's operator dispatch works

@thomasp85 thomasp85 added the feature a feature request or enhancement label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants