Dear Adam,
This would work indeed, but then the default aspect ratio (1.618) would
be used. I could as well calculate the height from the width and aspect
ratio. Unfortunately, this doesn't help me in my case (but as I said, I
have found a workaround).
Thank you again.
Ivan
--
Dr. Ivan Calandra
Imaging lab
RGZM - MONREPOS Archaeological Research Centre
Schloss Monrepos
56567 Neuwied, Germany
+49 (0) 2631 9772-243
https://www.researchgate.net/profile/Ivan_Calandra
Le 20/09/2021 à 21:29, Adam Wysokiński via R-help a écrit :
Dear Ivan,
I think you don't need to provide the aspect ratio, as this should
work as well:
save_plot("/tmp/plot.png", p, base_width = 5, base_height = NULL)
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.