Schmitt, Corinna wrote: > Dear R-Experts, > > I have the following command lines: > > windows() > > plot(0:60, 0:0.896, type="n", xlab="Zeit [min]", ylab="Absorptionsmessung > bei 600nm",main="Zellwandstabilität" ) > > dev.off() > > > Can anyone say me why the plot command does not work and how the correct one > should look like? > Important is: x-axis goes from 0 to 60 and the y-axis from 0 to 0.896!
It does not work because the lengths of x and y differ. Try evaluating 0:0.896 at the command line. If you are just trying to set up the plotting region, you could do this: par(mar=c(4,6,4,4)) plot(0, 0, type="n", xlab="Zeit [min]", ylab="Absorptionsmessung bei 600nm", main="Zellwandstabilität", xlim=c(0,60), ylim=c(0,0.896)) > Thanks, Corinna > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.