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