Hi, I had some error while running my code to create a point plot. It keeps saying " Error in grid.newpage():
could not open file '/cloud/project/.Rproj.user/shared/notebooks/8767F"
here is my code:
ggplot(data = activity_new, mapping = aes(x=totalsteps, y=calories) +
geom_point()
AlexisW
February 1, 2025, 10:16pm
2
First, you should change the "category" of this question: this is Posit Cloud, not the RStudio IDE.
Having the correct category may help get answers from the right people (and in this case, I think it's a problem with Posit Cloud, not ggplot2).
I would suggest trying several things to better identify the problem:
first, restart your session and try again, making sure you clean the environment
if you run plot(1)
, do you get the same error (this would use base R plotting instead of ggplot)
if you run dev.off()
, then try plotting again, does it solve anything?
if you open a new, fresh project, and only run library(ggplot2)
followed by ggplot(mtcars) + geom_point(aes(x = mpg, y = cyl))
does it work?
Also, you have a red exclamation mark on your account name in the top-right, do check that this is not related.