[R] plotting the following data

S Ellison S.Ellison at lgc.co.uk
Fri May 21 18:26:11 CEST 2010


plot(1:8, f, axes=FALSE)
axis(1, at=1:8, labels=time)
axis(2)


>>> ANJAN PURKAYASTHA <anjan.purkayastha at 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:
time    f
0h    0.00
0.5h    0.54
1h    1.15
2h    2.33
4h    1.57
6h    2.19
18h    1.45
24h    1.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 equally spaced.
however, using plot($time, $f) completely scrambles the ordering of
the
points.
Any pointers to this newbie on how to plot these data points accurately
will
be much appreciated.
Thanks,
Anjan

	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org 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.

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list