I would like to align two plots in R, generated with the image()
function.
Sample code:
# Load package
library(cowplot)
# Plot sample image
image <- image(matrix(rnorm(1000), 100,100))
# Align plots
plot_grid(image, image)
However, when I do it like this, the plots do not appear. Am I missing something? Or can cowplot not handle plots generated from the image function?