Learning R - Unable to solve ggplot issue

Hi I just downloaded RStudio Version 1.4.1106. Based on a tutorial I downloaded PalmerPenguins data set. I then tried running the following commands to see a scatterplot as instructed in the online tutorial and getting stuck at:

View(penguins)
ggplot2(data=penguins,aes(x=flipper_length_mm,y=body_mass_g))+geom_point(aes(color=species))
Error in ggplot2(data = penguins, aes(x = flipper_length_mm, y = body_mass_g)) :
could not find function "ggplot2"

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.