search for: myordervector

Displaying 1 result from an estimated 1 matches for "myordervector".

2008 Feb 27
1
how to specify ggplot2 facet plot order
...at reorder to reorder the factor called SERIES but that requires a vector of the same length upon which the ordering is defined through some function. I guess my noobness with all things R has brought me to a grinding halt. I can conceive an algorithm but don't know how to implement. 1. create myordervector of length(SERIES) comprising integers in a mapping C2: 1, C4: 2, C8: 3 ... 2. reorder using this vector as follows: mydata <- with(mydata, reorder(SERIES, myordervector , as.numeric)) 3. Then plot as above Is this remotely sensible? Perhaps the order is determined at plot time rather than from...