Re: [R] ggplot2 x axis question

2009-06-29 Thread Christopher Desjardins
Thanks Hadley that worked. Chris On 6/29/09 11:05 AM, hadley wickham wrote: > In that case, try: > > qplot(reorder(factor(model),delta),delta,data=growthm.bic) > > Deepayan: do you think there should also be a numeric method for reorder? > > Hadley > > On Mon, Jun 29, 2009 at 10:39 AM, Christopher

Re: [R] ggplot2 x axis question

2009-06-29 Thread hadley wickham
In that case, try: qplot(reorder(factor(model),delta),delta,data=growthm.bic) Deepayan: do you think there should also be a numeric method for reorder? Hadley On Mon, Jun 29, 2009 at 10:39 AM, Christopher Desjardins wrote: > Hi Hadley, > Thanks for the reply and the great graphing package. That

Re: [R] ggplot2 x axis question

2009-06-29 Thread Christopher Desjardins
Hi Hadley, Thanks for the reply and the great graphing package. That code is giving me the following error: > qplot(reorder(model,delta),delta,data=growthm.bic) Error in UseMethod("reorder") : no applicable method for "reorder" Cheers, Chris On 6/28/09 8:21 PM, hadley wickham wrote: > Hi Chris

Re: [R] ggplot2 x axis question

2009-06-28 Thread hadley wickham
Hi Chris, Try this: qplot(reorder(model, delta), delta, data = growthm.bic) Hadley On Sun, Jun 28, 2009 at 9:53 AM, Christopher Desjardins wrote: > Hi, > I have 45 models that I have named: 1, 2, 3, ... , 45 and I am trying to > plot them in order of ascending BIC values. I am however unclear a

[R] ggplot2 x axis question

2009-06-28 Thread Christopher Desjardins
Hi, I have 45 models that I have named: 1, 2, 3, ... , 45 and I am trying to plot them in order of ascending BIC values. I am however unclear as to how I can get the models to line up on the x-axis by BIC and not by numeric order. For example, if model 5 has a lower BIC than 1, I want it to be