Re: [R] plot cummulative sum from calendar time

2007-12-19 Thread John Kane
I am not sure I really understand what you want but will this work? tt<-c("03-Nov-1997","09-Oct-1991","27-Aug-1992","01-Jul-1994","19-Jan-1990", "12-Nov-1993","08-Oct-1993","10-Nov-1982","08-Dec-1986","23-Dec-1987","02-Aug-1995", "20-Oct-1998","29-Apr-1991","16-Mar-1994","20-May-1991","28-Dec-1987

Re: [R] plot cummulative sum from calendar time

2007-12-19 Thread jim holtman
Here is an example of plotting the number of observations per month. You can change this to any period you want. # create some test data x.d <- as.Date("2000-1-1") + runif(1000, 1, 500) # create buckets of one month (or whatever period you want) x.cut <- cut(x.d, breaks=seq(as.Date('2000-1-1'), ma

Re: [R] plot cummulative sum from calendar time

2007-12-19 Thread Gavin Simpson
On Wed, 2007-12-19 at 14:59 +0800, gallon li wrote: > I have the following list of observations of calendar time: > > [1] 03-Nov-1997 09-Oct-1991 27-Aug-1992 01-Jul-1994 19-Jan-1990 12-Nov-1993 > [7] 08-Oct-1993 10-Nov-1982 08-Dec-1986 23-Dec-1987 02-Aug-1995 20-Oct-1998 > [13] 29-Apr-1991 16-Ma

[R] plot cummulative sum from calendar time

2007-12-18 Thread gallon li
I have the following list of observations of calendar time: [1] 03-Nov-1997 09-Oct-1991 27-Aug-1992 01-Jul-1994 19-Jan-1990 12-Nov-1993 [7] 08-Oct-1993 10-Nov-1982 08-Dec-1986 23-Dec-1987 02-Aug-1995 20-Oct-1998 [13] 29-Apr-1991 16-Mar-1994 20-May-1991 28-Dec-1987 14-Jul-1999 27-Nov-1998 [19] 09