Rstudio errors, data visualization

ggplot(data=dailyActivity_merged.csv) +
geom_point(mapping=aes(x=TotalSteps, y=TotalDistance))

When I run this chunk, I keep getting the error (could not find function: ggplot)

Have you installed the package, and have you loaded the library?

install.packages("ggplot2")
library(ggplot2)

I installed and loaded ggplot2, but I still have the same problem

This topic was automatically closed 42 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.