Notice this is different from other questions because I use coord_fixed()
which changes the spacing.
Here's my minimal working example:
WITH COORD FIXED
library(ggplot2)
library(gridExtra)
x = runif(100)
p <- ggplot(data.frame(x=x, y=x)) + geom_line(aes(x, y)) + theme_minimal() + coord_fixed()
grid.arrange(p, p, p, p, ncol=2)
WITHOUT COORD FIXED
library(ggplot2)
library(gridExtra)
x = runif(100)
p <- ggplot(data.frame(x=x, y=x)) + geom_line(aes(x, y)) + theme_minimal()
grid.arrange(p, p, p, p, ncol=2)
QUESTION How can I make the first plot look like the second, just with fixed coordinates?