You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were wondering how to save files in TIFF format for high resolution plots. We have ahd a look through the code and can't find where this can be done. We have tried to load the R file from the output data file but this produced plots with erroneous map margins and legend size.
Cheers
Toby
The text was updated successfully, but these errors were encountered:
I could modify the code to allow output as TIFF, but doing it properly may take me a bit. However, have you tried opening the PDF in Illustrator/Inkscape/GIMP and exporting to PNG/TIFF? We chose to output as PDF by default because it can easily be edited in Illustator/Inkscape so you can edit, the axes, etc. to your liking.
Illustrator can output as TIFF; Inkscape cannot but you can output as PNG and then as TIFF by opening in GIMP. I think this way you should be able to have as much resolution as you want since PDF is vectorial.
Regarding your error, what did you try exactly? I managed to output as TIFF by doing:
load("yourfilename.RData) # load RData output from your hysplit run
opt <- list(run_id = 1) # generate mock opt object
tiff(filename="yourfilename.tiff", res =300, width = 5000, height = 5000, units = "px) # adjust graphical parameters to your taste
lapply(X=trajs, FUN = plot_trajlines, PRJ = PRJ) # this line from the program plots the trajectories
dev.off()
But this will be a bit cumbersome if you have to run many figures.
Hi Eric,
We were wondering how to save files in TIFF format for high resolution plots. We have ahd a look through the code and can't find where this can be done. We have tried to load the R file from the output data file but this produced plots with erroneous map margins and legend size.
Cheers
Toby
The text was updated successfully, but these errors were encountered: