From deepayan.sarkar at gmail.com  Fri Jul  3 01:56:30 2009
From: deepayan.sarkar at gmail.com (Deepayan Sarkar)
Date: Thu, 2 Jul 2009 16:56:30 -0700
Subject: [Rd] [R] ggplot2 x axis question
In-Reply-To: <f8e6ff050906290905o39a567c8p7298aea90e01529@mail.gmail.com>
References: <4A4783FF.4020907@gmail.com>
	<f8e6ff050906281821x2caef422t11dbac30bb5fce1d@mail.gmail.com>
	<4A48E02D.2040101@gmail.com>
	<f8e6ff050906290905o39a567c8p7298aea90e01529@mail.gmail.com>
Message-ID: <eb555e660907021656l98ce52co8fc6edb84410b216@mail.gmail.com>

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

[...]



[Rd] [R] ggplot2 x axis question
Deepayan Sarkar