简体   繁体   中英

Rstudio and R both freeze when plotting with plot() and ggplot()

I have a problem since that has to do with plotting in R and Rstudio. I am using a MacBook Pro 14'' with macOS Monterey Version 12.1. The RStudio version is 2022.12.0+353 (2022.12.0+353), and the R version is 4.2.2.

I was previously using R 4.2.0 and a previous version of RStudio and still the plots did not show up.

What happens is that as soon as I try to plot anything, the panel freezes and the only way to go forward is to press the red "stop" button of the console. Usually, the only way to go is to restart R because pressing the stop button is not enough. It happens with any plotting function that I am aware of, including ggplot(), hist(), and plot().

I have already tried to restart the laptop, to unload the packages and to update them.

Did anybody encounter a similar issue? It's quite puzzling to me. Thanks, Marco

I have already tried to restart the laptop, to unload the packages and to update them.

I solved the problem. my system did not recognise the Arial font. After installing it manually, ggplot worked again.

Thanks! M

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM