Lathouri, Maria <m.lathouri06 <at> imperial.ac.uk> writes:

[...]
> Until here it works fine, but I have the graph plotting only the points. What
I want is to have a line (join
> these points) so to have a time plot. I have tried different commands such as
lines(DATE,pH) or with(DF,
> lines(DATE,pH) but nothing works. 
> 
> What can I do?
[...]


plot(DATE,pH, type="l")

This should do it.

when you look into the plot-help-pages,
then you can see a lot of plotting-types.

with type "p" it plots points (default)
with type "l" it plots lines
with type "b" it plots lines and points

Ciao,
   Oliver

______________________________________________
R-help@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.

Reply via email to