[R] Yet another beginner question
Peter Flom
flom at ndri.org
Mon Sep 8 23:07:49 CEST 2003
Thanks for all the help on my earlier questions.....
How do you plot a simple time series with unequal intervals? I have
the following
dateofpoll <- as.ts(c("6/1/02", "7/1/02", "10/1/02", "1/4/03",
"1/25/03",
"6/7/03", "7/16/03", "8/17/03", "9/4/03"))
reelect <- c(51, 47, 49, 51, 49, 49, 46, 45, 40)
new <- c(28, 32, 35, 36, 41, 38, 47, 48, 52)
what I'd like is to plot reelect and new (maybe with smoothing) on a
time scale, with the x axis labeled for date.....
But I can't figure out how, despite looking at ?ts and various things
there
Thanks in advance
Peter L. Flom, PhD
Assistant Director, Statistics and Data Analysis Core
Center for Drug Use and HIV Research
National Development and Research Institutes
71 W. 23rd St
www.peterflom.com
New York, NY 10010
(212) 845-4485 (voice)
(917) 438-0894 (fax)
More information about the R-help
mailing list