The zoo package can represent and plot irregular time series. There are three vignettes that describe it plus the help pages. See ?zoo ?plot.zoo ?xyplot.zoo
e.g. library(zoo) z <- zoo(1:3, Sys.Date() + c(1, 2, 5)) plot(z) library(lattice) xyplot(z) On Wed, Sep 3, 2008 at 3:00 PM, Dr Eberhard W Lisse <[EMAIL PROTECTED]> wrote: > Hi, > > I am getting accumulated data from PostgreSQL, ie for every day in > which a condition is true I get the number (count) of cases. Starting > date is 2008-01-01 and end day the last day for which the condition > is true (which is not necessarily today). > > I obviously do not get records (dates) with count = 0, in other words > this is not a complete list of every day since 2008-01-01. > > Now I want I plot this, with the sum on the Y axis and the months > on the X axis, preferably as a line drawing. > > Any ideas? > > el > -- > Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist (Saar) > [EMAIL PROTECTED] el108-ARIN / * | Telephone: +264 81 124 6733 (cell) > PO Box 8421 \ / Please send DNS/NA-NiC related e-mail > Bachbrecht, Namibia ;____/ to [EMAIL PROTECTED] > > ______________________________________________ > 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. > ______________________________________________ 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.