[R] plotting the following data

2010-05-21 Thread ANJAN PURKAYASTHA
Hi, I need to plot $time on the x-axis and $f on the y-axis for the following data: timef 0h0.00 0.5h0.54 1h1.15 2h2.33 4h1.57 6h2.19 18h1.45 24h1.79 I want the order of the data-points to be retained and the x-coordinates of each of the 8 data-points to be

Re: [R] plotting the following data

2010-05-21 Thread S Ellison
plot(1:8, f, axes=FALSE) axis(1, at=1:8, labels=time) axis(2) ANJAN PURKAYASTHA anjan.purkayas...@gmail.com 21/05/2010 17:15:48 Hi, I need to plot $time on the x-axis and $f on the y-axis for the following data: timef 0h0.00 0.5h0.54 1h1.15 2h2.33 4h1.57 6h2.19 18h

Re: [R] plotting the following data

2010-05-21 Thread jim holtman
Not exactly sure what you mean by equally spaced; here is one way: x - read.table(textConnection(timef + 0h0.00 + 0.5h0.54 + 1h1.15 + 2h2.33 + 4h1.57 + 6h2.19 + 18h1.45 + 24h1.79), header=TRUE, as.is=TRUE) plot(x$f, xaxt='n') axis(1, at=1:8, labels=x$time)

Re: [R] plotting the following data

2010-05-21 Thread ANJAN PURKAYASTHA
Thanks all for your suggestions. plot(1:8, f, axes=FALSE) axis(1, at=1:8, labels=time) axis(2) That gave me exactly what I wanted. Anjan On Fri, May 21, 2010 at 12:27 PM, jim holtman jholt...@gmail.com wrote: Not exactly sure what you mean by equally spaced; here is one way: x -