error in ggplot(data=data2) : object 'data2' not found


can someone help me, i dont know why ??

Hi,

Welcome to the RStudio community!

You should load the data (data2) first in the script before you run it. I can see you have it in the environment, but for things like RMarkdown for example that won't suffice. So just put in the code you used to import or create data2 before the ggplot function.

Hope this helps,
PJ

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.