Created
December 6, 2017 22:26
-
-
Save danielecook/d2bb89371403073ae9e6b024dca88c05 to your computer and use it in GitHub Desktop.
Plot png in ggplot/cowplot #ggplot #cowplot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(imager) | |
library(cowplot) | |
im <- imager::load.image("https://storage.googleapis.com/elegansvariation.org/photos/hawaii2017/C-3273.jpg") | |
plot <- ggplot() + annotation_raster(im, xmin=-Inf, xmax=Inf, ymin=-Inf, ymax=Inf) | |
cowplot::plot_grid(plot, plot) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment