If I wanted to graph two variables, normally, I found the code to be
However I would like to graph three variables, two of them being in the y-axis (polarization and gini2). But I don't know how to fit in "sort" in the command in order to make sure the graph is sorted on the x axis. Without sort, this is the command:
But the data comes out a mess because it is not sorted on the x axis. How do I sort it please?
Code:
twoway (line polarization year, sort)
Code:
twoway (line polarization year, c(l) yaxis(1)) (line gini2 year, c(l) yaxis(2))
Comment