Syntax Error while plotting in R

Hello everyone,

In spite of installing and loading ggplot , following error is occuring.

Error in ggplot2(data = penguins) : could not find function "ggplot2"

ggplot(data=penguins)+geom_point(mapping=aes(x=flipper_length_mm,y=body_mass_g))

I wrote above code

Can anyone help me with this please?

Thank you!!

It looks like you ran the above (with the erroneous 2) instead of:

ggplot(data=penguins)+geom_point(mapping=aes(x=flipper_length_mm,y=body_mass_g))

Try it again.

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.