plvera,
sorry, I think I was not clear in my question. I already -have- a factor (not a vector) with levels defined. Let me try again.
This factor looks good EXCEPT that the order of the levels is not what I want. (Why? Because the numbers 0, 10, 2, etc. mean "0h", "up to 2h", "up to 5h", etc. So, there is a logical order and I want them to show (and plot!) in that order.
Code:
Factor w/ 7 levels "0","10","2","20",..: 7 7 4 3 7 5 3 7 3 4 ...
0 10 2 20 40 99 5 NA's
94 432 726 263 132 117 610 61
How can I keep everything and only change this order? The goal is the factor to look like this:
Code:
Factor w/ 7 levels "0","2","5","10",..: 7 7 4 3 7 5 3 7 3 4 ...
0 2 5 10 20 40 99 NA's
94 726 610 432 263 132 117 61
I hope it is clearer now.
Thanks, digisus (aka madmaxx, my old login)
Bookmarks