Barplot error non-numeric argument to binary operator

No worries. Glad to help.

Just as a note, (I'm also new here so also need to work on this), typically when you post a question relating to R (or really any language), people like it when you post a reproducible example or reprex rather than the exact content of your script.

The reason is that, say for example I put your code above into my R session - it wouldn't run. I don't have access to the dataset edidiv so I wouldn't be able to test it out on my system. This is important as your problems get more complex.

There are instructions here for next time you need to ask a question :slight_smile: :