ggplot code argument returns error even when copied directly from Google certificate material

I tried to practice along with the lessons of Google certificate on ggplot2, the codes are not working.
At first, I memorize and relayed it, not working. Even when I copied it directly as rendered.

What could be the cause? I installed the ggplot packages and its library

I keep getting error below as screenshotted.

Seems you.didnt execute the library(ggplot2) command that is present in your script

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.