Barplot not recognising columns


I'm trying to produce a barplot, but when I try rstudio doesn't recognise my columns. It says

Error: object 'column x' not found

Any ideas why? I'm pretty sure the data's loaded.

Show us the results of str(df) where df is the name of your dataframe and then show us the barplot command.

Hi @purpleforest , check the correct name of colums.

If your data frame is data, you could use:

names(data) # For see how R interpret your columns names.
# Next replace the names in you boxplot. Maybe you have spaces in the columns names.

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