My R-studio does not plot anything

I am using Mac Pro M1 2020 but my R-studio doesn't open the plots what should I do?

install.packages(tidyverse)
library(tidyverse)
ggplot(yourdataset, aes(x=yourdataset$x, y=yourdataset$y) + geom_line()

if this dont work, try to be more specific to explain your problem.

I think you are missing a closing parenthesis for ggplot(). Also, you do not need to reference the data set for each variable. If the variables in yourdatset are variable1 and variable2:

ggplot(yourdataset, aes(x=variable1, y=variable2)) + geom_line()

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.