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

Arranging plot and illustration side by side #263

Open
GregorKachel opened this issue Jun 21, 2021 · 2 comments
Open

Arranging plot and illustration side by side #263

GregorKachel opened this issue Jun 21, 2021 · 2 comments

Comments

@GregorKachel
Copy link

The solutions for putting plots side-by-side and on top of each other are great. However, is there a good way to combine a plot and a graphic (e.g. a png image of all stimuli used or of a particular setup) in the same panel side by side.

this here is not convincing: https://stackoverflow.com/questions/25204127/is-it-possible-to-create-a-multiplot-of-data-and-images-with-ggplot

@GregorKachel GregorKachel changed the title Arranging plot and graphic Arranging plot and illustration side by side Jun 21, 2021
@djnavarro
Copy link
Collaborator

Thanks!

I'm revisiting this as part of a general sweep through open issues. It's a question about ggplot2 itself rather than something specific to the book, so there's nothing specific to address right now, and the new "arranging plots" chapter implicitly answers this. That said, I think there's a case to be made that we should discuss use cases like this one when talking about patchwork. In real life you often have this problem, and it might be worth highlighting that you can create a "dummy" plot that simply displays an image and then let patchwork take care of the arrangement?

Leaving open for now because we might want to revisit this

@hadley
Copy link
Owner

hadley commented Feb 3, 2023

Also worth noting this sort of mixing is sometimes easier to solve at a higher level, e.g. with https://quarto.org/docs/authoring/figures.html#figure-panels

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

3 participants