[R] Row order in plot

Sarah Goslee sarah.goslee at gmail.com
Thu Dec 11 22:41:58 CET 2008


Though the results of using plot() with a factor may not always be what you
expect, as plot.factor() differs from plot().

Sarah

On Thu, Dec 11, 2008 at 4:36 PM, Peter Alspach
<PAlspach at hortresearch.co.nz> wrote:
> Tena koe
>
> Try
>
> mice$X <- factor(mice$X, levels=mice$X)
> plot(Green.1~X,data=mice)
>
> HTH ....
>
> Peter Alspach
>

-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list