I'm using ggplot package in R to plot a simple point graph with the "Lecture" number on the xlab and the "music week" on the ylab.
Here is the simple dataset I'm trying to plot:
Here is the code I used:
ggplot(music2, aes(Lecture, Music)) + geom_point() + xlab("Lecture") + ylab("Music Week")
Here is the plot I get:
As showed above in the plot, the xlab of the plot doesn't go in the sequence of the numbers as in the dataset. Number 11 and 12 jump in between 1 and 2, instead of staying behind 10.
How can I change the sequence into its natural order?