[R] Plotting Time Series Data by Month

crazedruff smoochie3002 at gmail.com
Wed Dec 7 21:02:43 CET 2011


Sorry about that, new to posting here! Your code was extremely helpful, and
tweaking it a bit gave me the output I was looking for:

plot( rep(1:12, 17), pox, col = rep(1:17, each = 12), xaxt = "n",
ylab="Reported Cases",xlab =
"Months", pch = 20, main="Monthly Trends of Chickenpox")
axis(1, at = 1:12, labels = month.abb, padj = 0)
legend(8, 28000,c("1993", "1994","1995","1996","1997","1998","1999","2000",
"2001","2002","2003","2004","2005","2006","2007","2008","2009"), inset=.05,
title="Years",
c(1993:2009), pch=20, horiz=FALSE, cex=.7)

Apparently there aren't enough colors for each year to have it's own
individual color, but I think I can live with that. Thanks again!

--
View this message in context: http://r.789695.n4.nabble.com/Plotting-Time-Series-Data-by-Month-tp4162534p4170305.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list