Skip to content
Back to formatted view

Raw Message

Message-ID: <644e1f320812050536h66d7bad2g95ebb0a0614a3c43@mail.gmail.com>
Date: 2008-12-05T13:36:30Z
From: jim holtman
Subject: Changing order of x factor in interaction plot
In-Reply-To: <53166.86.149.177.146.1228483953.squirrel@www.squirrelmail.ucl.ac.uk>

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?