I have tables like this:
I’m having trouble turning it into a line graph where the Years are on the X axis and the values are on the Y axis.
When I try graphing the values on the Y axis are always out of order and messes up the graph:
I apologize if this is an easy fix, I’m new and trying to learn but I have been stuck on this for ages.
Output of dput(USA_data_long):dput(USA_data_long
Erin Chan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3