I created a very similar plot following the code provided in this post (similar width facets and boxplots). How to automatically adjust the width of each facet for facet_wrap?
I want to export the image as a tiff file for a manuscript. How do I do that?
I assigned the last line of code as follows:
Figure4 = grid::grid.draw(gp)
tiff("Figure4.tiff", width = 1800, height = 800, res = dpi)
Figure4
dev.off()
But the resulting figure in my directory is a blank white space. How do I export the image as a high-quality figure?
The sample code can be found in the post linked.
Help is appreciated.