[R] Unordered Factors For ggplot?

Ryan Garner ryan.steven.garner at gmail.com
Wed Feb 17 19:50:15 CET 2010


I have data that comes into R already ordered. When I use ggplot, it orders
them which I don't want. How do I fix this without changing
options("contrast")?

The data I have is number of days:
30
29
...
20
19
...
10
9
...
1

When I plot with ggplot, it orders them by the first number only. So 3 ends
up coming before 29.
-- 
View this message in context: http://n4.nabble.com/Unordered-Factors-For-ggplot-tp1559146p1559146.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list