ggplot error with mtcars data

My code:
ggplot(data = mtcars, mapping = aes(x = wt, y = mpg)) + geom_point()

My Error:
Error in loadNamespace(name) : there is no package called ‘labeling’

Can someone help?

It looks like a missing package. Installing {labeling} with install.packages("labeling") may fix it.

What does require(labeling) return?

1 Like

That did the trick. Thank you EeethB!

1 Like

thank you for sharing this with us, this is really helpful for me.

1 Like

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