[Rd] [R] ggplot2 x axis question

Deepayan Sarkar deepayan.sarkar at gmail.com
Fri Jul 3 01:56:30 CEST 2009


On Mon, Jun 29, 2009 at 9:05 AM, hadley wickham<h.wickham at gmail.com> 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?

r-devel now has a reorder.default (replacing reorder.factor and
reorder.character), so reorder() should also work for numeric data.

-Deepayan

> Hadley
>
> On Mon, Jun 29, 2009 at 10:39 AM, Christopher
> Desjardins<cddesjardins at gmail.com> wrote:
>> 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

[...]



More information about the R-devel mailing list