Message-ID: <4DBAA8CD.4010800@bitwrit.com.au>
Date: 2011-04-29T12:02:21Z
From: Jim Lemon
Subject: Putting x-axis in opposite order
In-Reply-To: <001b01cc05cf$6280d040$278270c0$@gmail.com>
On 04/29/2011 04:09 AM, Bogaso Christofer wrote:
> Hi all, please consider this plot:
>
>
>
> xx<- seq(4, 0.01, by = -0.04)
>
> yy<- rnorm(xx)
>
> plot(xx, yy, type="l")
>
>
>
> Here you see my original 'xx' was in decreasing order, however R puts it in
> the increasing order. I understand that in any plot x and y axis grow is
> increasing order, however I am wondering whether I can manipulate this to
> suit my above particular problem, so that number displayed in x-axis would
> be in the given order.
>
Hi Bogaso,
If all else fails, have a look at rev.axis in the plotrix package.
Jim