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 wrote:
> Not exactly sure what you mean by "equally spaced"; here is one way:
>
> > x <- read.table(textConnecti
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
plot(1:8, f, axes=FALSE)
axis(1, at=1:8, labels=time)
axis(2)
>>> ANJAN PURKAYASTHA 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
18h1.45
24h1.79
I
3 matches
Mail list logo