Thank you very much Deepayan. This does exactly what I needed! Cheers, Guy Jett gj...@itsi.com
-----Original Message----- From: Deepayan Sarkar [mailto:deepayan.sar...@gmail.com] Sent: Friday, April 01, 2011 6:51 AM To: Guy Jett Cc: r-help@R-project.org Subject: Re: [R] XYPlot Conditioning Variable in Specific, Non-Alphanumeric Order. -- Resending with corrected .txt file <snip> You need to specify the order of the levels explicitly (to override the default). Here is how to do it for one, you can similarly do the other: > levels(df$Offset) [1] "T" "U" "V" "Y" "Z" "A" "B" "C" "D" "E" "F" "G" "H" > df$Offset <- factor(df$Offset, + levels = c("T", "U", "V", "Y", "Z", "A", + "B", "C", "D", "E", "F", "G", "H")) > levels(df$Offset) [1] "T" "U" "V" "Y" "Z" "A" "B" "C" "D" "E" "F" "G" "H" Once you make these changes, your original call should work as desired. -Deepayan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.