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

free with fixed aspect ratio plot failed #387

Closed
Yunuuuu opened this issue Sep 4, 2024 · 1 comment
Closed

free with fixed aspect ratio plot failed #387

Yunuuuu opened this issue Sep 4, 2024 · 1 comment

Comments

@Yunuuuu
Copy link
Contributor

Yunuuuu commented Sep 4, 2024

knitr::opts_knit$set(upload.fun = identity)
library(patchwork)
library(ggplot2)
p4 <- ggplot(mtcars) +
  geom_bar(aes(gear)) +
  facet_wrap(~cyl) +
  ggtitle("Plot 4")

p_f <- ggplot(mtcars) +
  geom_point(aes(hp, disp)) +
  coord_fixed() +
  ggtitle("Fixed Aspect")
wrap_plots(free(p_f, "panel", "b"), p4)

Created on 2024-09-04 with reprex v2.1.0
~
~
~
~
image

What I expect is something like this:
image

@thomasp85
Copy link
Owner

Thanks for all these tests and reports

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

2 participants