This is for a tool I am building, so my solution can't be adhoc. I would like to save a ggplot object to a log file, which contains a lot of other information. Then I would use many of these log files to make a combined plot of all the ggplots. I've tried just saving the images as .pngs and then combining them in R but the quality decreases significantly when combining them from image files. Any ideas?
I don't want to save them to indiviual .Rdata files because I'd like all the information to be contained within the log file. Is my only option to save the dataframe used to construct the ggplot and then reconstruct it later?