How can I sort the legend order in a ggmap? I have the following code:
mymap <- ggmap(map) + geom_point(data = mypoints, aes(x =lon, y= lat,colour = month), alpha=0.5, size=5)
I would like the months to appear in order (i.e. Jan, Feb, Mar, Apr... etc.)
Edit
As stated by Tyler Rinker, one way is to use the function
factor
to order factor levels (in this case, months).I created some data to use with ggplot, but you can adapt to your data and use the logic with ggmap.