October 26, 2024
Chicago 12, Melborne City, USA
pdf

Can you save a pdf/jpg/png as an object and arrange in a single plot?


I know how to save a plot as a pdf to disk …

pdf(file = "sample.pdf")
plot(x=1:2,y=1:2)
dev.off()

But, instead of sample.pdf could I make the pdf an object in the global environment? I want to arbitrarily resize some plots and combine them in a grid. I can do it by saving the plots to disk and applying Imagemagick … but how can I skip the export and reimport steps?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video