Re: [R] Time plots

From: Oliver Bandel <>
Date: Mon, 17 Nov 2008 16:21:22 +0000 (UTC)

Lathouri, Maria <m.lathouri06 <at>> 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


   Oliver mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 17 Nov 2008 - 16:35:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Nov 2008 - 17:30:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive