Check out the 'levels' option on 'factor'
On Fri, Dec 5, 2008 at 8:32 AM, Kota Hattori <k.hattori at ucl.ac.uk>
wrote:> Hi all,
>
> I would like to ask one simple question. I wanna know how
> you can ask R to change the order of x factor when you draw
> interaction plot. I find that R puts factors in an alphabetic
> order (e.g., dog, lamb, and monkey etc). But I simply want to
> control the order. How can I do this?
>
> Aloha,
> Kota
>
> ______________________________________________
> R-help at 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?