[R] plot & xlim/ylim & range of axis
Steffen Uhlig
steffen.uhlig at htw-saarland.de
Wed Nov 10 10:23:21 CET 2010
Hi Ivan,
thanks for the hint. Now it works as expected.
Sincerely,
/steffen
Am 10.11.2010 10:10, schrieb Ivan Calandra:
> Hi,
>
> The xlim and ylim arguments should be given the extremes of the range,
> not a range:
> plot(x=NULL,
> y=NULL,
> xlim=c(1, 10), ## with c()
> ylim=v(1e-9, 1e-3), ## with c()
> log="y")
>
> HTH,
> Ivan
>
> Le 11/10/2010 10:00, Steffen Uhlig a écrit :
>> 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