Re: [R] plotting date data over couple of months

2011-07-14 Thread vamshi999
thank you for your reply.. As i have told you earlier... i want to plot the total no.of birds counted for each day and plot total no.of birds for each day.. one level for each day .. i wanted to normalize the data.. since i don't have the data for equal no.of hours for all days.. for example o

Re: [R] plotting date data over couple of months

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 9:42 PM, vamshi999 wrote: i am sorry again.. this is my dataset.. 'data.frame': 46376 obs. of 19 variables: $ scan.no : int 24 78 61 64 64 64 65 73 79 82 ... $ track.no : int 5 48 105 122 124 121 123 380 1073 1093 ... $ blip.no : int 70 323 514 547 549 553 558 535

Re: [R] plotting date data over couple of months

2011-07-13 Thread vamshi999
i am sorry again.. this is my dataset.. 'data.frame': 46376 obs. of 19 variables: $ scan.no : int 24 78 61 64 64 64 65 73 79 82 ... $ track.no : int 5 48 105 122 124 121 123 380 1073 1093 ... $ blip.no : int 70 323 514 547 549 553 558 5355 7014 7119 ... $ date : chr "2011-04-2

Re: [R] plotting date data over couple of months

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 8:32 PM, vamshi999 wrote: I am sorry again.. I am posting the sample data.. my data set is huge.. dimension of my data set is 5 x 6 scan.nobird.no date time height "1" 24 5"2011-04-29" "21:17:56" 3

Re: [R] plotting date data over couple of months

2011-07-13 Thread vamshi999
I am sorry again.. I am posting the sample data.. my data set is huge.. dimension of my data set is 5 x 6 scan.nobird.no date time height "1" 24 5"2011-04-29""21:17:56" 357 "2" 78 48

Re: [R] plotting date data over couple of months

2011-07-13 Thread David Winsemius
So, post some data. I'm tired of unsuccessful attempts at mind reading. If the data set is too big, then just use: dput(data2[which( data2$date < as.Date("2011-05-05") & data2$date > as.Date("2011-04-27") ), ] ) -- David On Jul

Re: [R] plotting date data over couple of months

2011-07-13 Thread vamshi999
I am sorry i was not clear in my early post I have used the below code to change my data into date format.. r<-as.POSIXlt(paste(data2$date,data2$time)) library(gsubfn) library(chron) r<-as.chron(r) data2$date<-strftime(strptime(r, format="(%m/%d/%y %H:%M:%S)"),"%Y-%m-%d") data2$time<-strft

Re: [R] plotting date data over couple of months

2011-07-13 Thread David Winsemius
On Jul 13, 2011, at 6:56 PM, vamshi999 wrote: Hi .. i am a beginner in R I have data in the format of date 04/27/11 04/27/11 04/30/11 04/30/11 05/03/11 05/03/11 05/04/11 So they are not yet dates, but rather character vectors. R dates don't look like that unless you make special effor

[R] plotting date data over couple of months

2011-07-13 Thread vamshi999
Hi .. i am a beginner in R I have data in the format of date 04/27/11 04/27/11 04/30/11 04/30/11 05/03/11 05/03/11 05/04/11 Now i want to plot the data something like this on x-axis... -- 27 28 29 30 1 2 3 4 April