I have a dataframe of students that includes their unique ids, names and test scores.
I am trying to plot the student ID and their test scores in GGPlot, sorted by student id (The graph should have student name as the x axis and test scores as the y and should be in ascending order of the ids).
Also note that there are duplicates of certain test scores (i.e. 2 students could get the same grade on a test).
I know how to plot it already I am just trying to order it by the single ID column, in ascending order. How can I go about doing this? Thanks!
Example:
ID name test1score test2score
1 ted 92 94
2 jan 95 89
3 rob 92 96
4 jenny 92 94
5 risa 83 94
6 blake 80 90
7 court 77 89
8 aaron 98 83
9 austin 83 84