[R] Help on direction of axis in R needed

Petr Pikal petr.pikal at precheza.cz
Wed Oct 11 11:57:44 CEST 2006


Hi

something like that?
y<-1:10
x<-11:20

plot(x,y)
plot(x[10:1],y) # reverse x

HTH
Petr


On 11 Oct 2006 at 2:27, Silvia Lipski wrote:

Date sent:      	Wed, 11 Oct 2006 02:27:34 -0700 (PDT)
From:           	Silvia Lipski <sillispiral at yahoo.com>
To:             	r-help at stat.math.ethz.ch
Subject:        	[R] Help on direction of axis in R needed

> Hi!
> 
> I'd like to plot things with axes going from the
> highest to the lowest value, so that e.g. high values
> on the xaxis are plotted to the left and low values to
> the right.
> Could anyone tell me how this is done? I couldn't find
> anything in the documentation.
> 
> Thanks a lot!
> Silli
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code.

Petr Pikal
petr.pikal at precheza.cz



More information about the R-help mailing list