[R] Help on direction of axis in R needed

Philipp Pagel philipp.pagel.lists at t-online.de
Wed Oct 11 11:54:06 CEST 2006


> I'd like to plot things with axes going from the
> highest to the lowest value

You can use the xlim and ylim parameters of the plot function. E.g:

x = 1:100
plot(x, x^2)                  # normal
plot(x, x^2, xlim=c(100,0))   # reversed x axis

cu
	Philipp

-- 
Dr. Philipp Pagel                            Tel.  +49-8161-71 2131
Dept. of Genome Oriented Bioinformatics      Fax.  +49-8161-71 2186
Technical University of Munich
Science Center Weihenstephan
85350 Freising, Germany

 and

Institute for Bioinformatics / MIPS          Tel.  +49-89-3187 3675
GSF - National Research Center               Fax.  +49-89-3187 3585
      for Environment and Health
Ingolstädter Landstrasse 1
85764 Neuherberg, Germany
http://mips.gsf.de/staff/pagel



More information about the R-help mailing list