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

Misc. potential future pattern inspiration links #60

Open
trevorld opened this issue Aug 23, 2022 · 2 comments
Open

Misc. potential future pattern inspiration links #60

trevorld opened this issue Aug 23, 2022 · 2 comments

Comments

@trevorld
Copy link
Owner

trevorld commented Aug 23, 2022

@trevorld
Copy link
Owner Author

  • ggplot2::ggplotGrob() converts a ggplot2 object into a grob (that we can use as a pattern fill)
  • g + ggplot2::theme(plot.margin = ggplot2::margin(t=-1, r=-1, b=-1, l=-1, unit="cm")) can be used to reduce margins

@trevorld
Copy link
Owner Author

More on removing margins: https://stackoverflow.com/questions/31254533/when-using-ggplot-in-r-how-do-i-remove-margins-surrounding-the-plot-area
such as setting + scale_x_continuous(expand=c(0,0)) + scale_y_continuous(expand=c(0,0))

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