[R] plotting time series

2013-09-10 Thread Shane Carey
Hi, I am trying to plot the following time series: Low sampling rate Low sampling rate Sample High sampling rate High sampling rate Sample 09:50:00 4.474203 09:50:37 4.465 10:00:00 4.493805 09:50:38 4.452 10:10:00 4.503606 09:50:39 4.451 10:20:00 4.513407 09:50:40 4.465 10:30:00 4.503606 09

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:

[R] plotting time series for particular months!

2010-11-04 Thread govindas
Hi all,  I have a matrix as given below... year month day prec 1   1980    10   1 13.4 2   1980    10   2  0.0 3   1980    10   3  0.0 4   1980    10   4  0.0 5   1980    10   5  0.0 6   1980    10   6  0.0 7   1980    10   7  0.0 8   1980    10   8  0.0 9   1980    10   9  0.0 10  1980    10 

Re: [R] plotting time series using ggplots

2010-09-16 Thread ONKELINX, Thierry
ericht- > Van: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] Namens Alison Macalady > Verzonden: donderdag 16 september 2010 8:51 > Aan: r-help@r-project.org > Onderwerp: [R] plotting time series using ggplots > > Hi, > I would like to plot a bunc

[R] plotting time series using ggplots

2010-09-15 Thread Alison Macalady
Hi, I would like to plot a bunch of tree ring width data (time series) using ggplots, but I'm having trouble figuring out how to do it. My data is in a data.frame, with years as rownames and a distinct tree ring series in each column. So, something like this: rwl<-matrix(rnorm(800), nrow =

[R] plotting time series

2009-11-11 Thread morgi2020
Hi, I'm new to R. I've two sort of time series, one sampled every second and other every 30 minutes stored in two data.frames zy1 and zy2. I've joined the two series using date<-merge(zy1,zy2, all.x=T,all.y=T) when I want to make a plot, using the code below, it doesn't work. It gives me the

Re: [R] plotting time series with data gap using type line- but do not want to connect gap with line

2009-05-28 Thread Gabor Grothendieck
Just place a point with an NA value between the two segments. Here is one way to do it in zoo: set.seed(123) library(zoo) # create sample data tt <- c(1:1000, 1200:2000) z <- zoo(rnorm(length(tt)), tt) # this will fill in omitted values with NAs z <- as.zoo(as.ts(z)) plot(z) On Thu, May 28,

[R] plotting time series with data gap using type line- but do not want to connect gap with line

2009-05-28 Thread Josef . Kardos
I have a time series of about 1500 measurements. There are sporadic data gaps. I would like to plot the time series with type "line". I only want a line to connect the periods with data; I don't want a line to connect the points across a data gap. Is there a function or recommended method t

Re: [R] plotting time series

2008-04-28 Thread Prof Brian Ripley
ts() only knows about monthly and quarterly series, not biannual ones. You need to look into methods for irregular series (zoo, its, tseries ...), or add dates yourself (?plot.POSIXct). E.g. x<-sample (10:100, 17) x<-ts(x, start=c(1998,1), frequency=2) xtime <- seq(as.Date("1998-05-01"), by="

[R] plotting time series

2008-04-28 Thread eugen pircalabelu
Hi List, I have the following time series and i want to be able to plot it while having the x-axis running from 1998 to 2006 but in a bi-annual format So here is my example: x<-sample (10:100, 17) x<-ts(x, start=c(1998,1), frequency=2) plot(x) When I plot the ts it goes from 1998 to 2006 by