In that case I suspect you need to reshape the data first via melt()
.
We'll need a reproducible example:
FAQ: How to do a minimal reproducible example ( reprex ) for beginners - meta / Guides & FAQs - RStudio Community
In that case I suspect you need to reshape the data first via melt()
.
We'll need a reproducible example:
FAQ: How to do a minimal reproducible example ( reprex ) for beginners - meta / Guides & FAQs - RStudio Community