[R] controlling plot range

John Sorkin jsorkin at grecc.umaryland.edu
Fri Oct 19 18:54:25 CEST 2007

Windows XP 
R 2.5.0
I am trying to produce two plots that have the same range, i.e. x from 50 to 400 on both plots and y from 50 to 400 on both plots. (This will allow me to compare slopes). I have used the code below without success using usr (I have also used xaxp and yaxp but I am not including the code):


axes on first plot 50-400, y axis 50-350
axes on second plot 50-250 y axis 100-250

What am I doing wrong?


John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)

Confidentiality Statement:
This email message, including any attachments, is for th...{{dropped:6}}

More information about the R-help mailing list