Re: [R] Plotting Time Series Data by Month

2011-12-07 Thread R. Michael Weylandt
Glad to help! There are definitely enough colors, but they aren't all assigned numbers automatically: to see a list of built in ones, try colors() You can always use a character string to specify a color as well -- but I think the easiest thing to do might be to use one of the palette functions l

Re: [R] Plotting Time Series Data by Month

2011-12-07 Thread crazedruff
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

Re: [R] Plotting Time Series Data by Month

2011-12-07 Thread Jeffrey J. Hallman
If you can wait a day or two, the next version (1.18) of the 'tis' package that I will put on CRAN very soon has a function called "tierChart" that does what you want with a 'tis' series. -- Jeff __ R-help@r-project.org mailing list https://stat.ethz.c

Re: [R] Plotting Time Series Data by Month

2011-12-06 Thread R. Michael Weylandt
Your data set is not reproducible from an image (use dput() on your next post to give us a taste of your data) but I'll hazard it's a ts class object. If so, try this: X <- ts( sample(500, 204), frequency = 12, start = 1995) plot( rep(1:12, 17), X, col = rep(1:17, each = 12), xaxt = "n", xlab = "

[R] Plotting Time Series Data by Month

2011-12-05 Thread crazedruff
Hi, I have a dataset which includes monthly data for 17 years. I want to be able to see the monthly data behavior for the period of all 17 years. What my data looks like: http://r.789695.n4.nabble.com/file/n4162534/data.jpg I would like to represent the data in a graph such as the one below: