[R] plot & xlim/ylim & range of axis

Steffen Uhlig steffen.uhlig at htw-saarland.de
Wed Nov 10 10:00:00 CET 2010


Dear mailing list readers!

Using R and the plot function I stumbled over this little issue:

plot(x=NULL,
      y=NULL,
      xlim=range(1:10),
      ylim=range(1e-9:1),
      log="y")

produces an plot empty plot, where the y-axis is in the specified range. 
Changing ylim to

ylim=range(1e-9:1e-3)

creates an y-axis in the range of 1e-12 to 1e-6. This appearance  of the 
y-axis is a bit unexpected for me. Could anyone point me to a FAQ entry 
why this happens?

Thank you very much in advance!

Sincerely,
/steffen


-- 
Steffen Uhlig, PhD
Mechatronik und Sensortechnik
HTW des Saarlandes
Goebenstraße 40
66117 Saarbrücken

Tel.: +49 (0) 681 58 67 274



More information about the R-help mailing list