Having trouble with ggpairs()

ggpairs(data= correlation_df_clean, columns = 2:4)
Error in geom_text():
! Problem while computing aesthetics.
:information_source: Error occurred in the 1st layer.
Caused by error:
! object 'X' not found

I've updated both R and ggplot2 and GGally. No NA values in the dataframe, no strange column names.

I think we need to see all your code and some sample data. See
FAQ Asking Questions

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here between
```

```

Hi @Dan_G , maybe see this link for better guide you.

introduction ggpairs

Are you sure that load correlation_df_clean object?

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.