[R] plotting command trouble
philipp.pagel.lists at t-online.de
Thu Apr 19 15:13:41 CEST 2007
On Thu, Apr 19, 2007 at 02:10:37PM +0200, Schmitt, Corinna wrote:
>> Hi, the length of the coordinates are different.
>> plot(seq(0,60, l=100), seq(0,0.896, l=100), type="n", xlab="Zeit [min]", ylab="Absorptionsmessung
>> bei 600nm",main="Zellwandstabilit?t" )
> I know, but it is needed. Any other idea?
Read the reply again. Of course, the number of x and y values needs to
be the same - how else would you plot the points?
The problem is that 0:0.896 does not do what you assumed it does.
Henrique actually provided the solution - did you try it?
Also, in your plot command you are using type='n' which will cause R not
to plot the actual data points. Without knowing the context of your
command I can only guess what you are trying to accomplish. Are you
plotting points into the empty plot later on?
Maybe you are just trying to set the plotting range? In that case better
use the xlim and ylim parameters of the plot function.
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
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
More information about the R-help