问题
I recently got a new macbook pro (2020 13-inch, running Big Sur v 11.1) and am using Rstudio (V 1.3.1093 with R version 4.0.3).
On my old computer, I often used the quartz()
function to view my plots in the external graphics viewer. On my old mac, this would allow me to dynamically resize, keep fonts consistent, save directly from the resized version, etc. Now, on my new computer, it is behaving... strangely.
For example, when I run quartz()
and a window opens, then I run a ggplot
, the quartz window remains completely blank until I resize it just a tiny bit, then my plot appears. Even after the plot appears, sometimes the corners are cut off until I resize again, which then (I guess) refreshes the plot so it properly fills the space. The behavior with ggsave
seems off, too, like the plots aren't saving exactly how they are appearing, which is the whole point of using the device.
Is anyone else having similar problems? I don't understand in great detail how graphics devices work, so I know this post is maybe not incredibly informative.
Thanks.
来源:https://stackoverflow.com/questions/65522587/quartz-device-behaving-strangely-after-mac-update-r-mac