Re: [R] Time series plot with Date/Time showing on x-axis

2016-03-16 Thread Jim Lemon
Hi Kwabena, Try this: kfa.df<-read.table(text="Date/Time,PR,SW,TP,SM,SHF,CO2 28.11.2011 17:39:49,978.4,13.15,30.5,20,NA,NA 28.11.2011 17:50:00,978.5,13.11,30.4,20,NA,NA 28.11.2011 18:00:00,978.8,13.14,30.3,20,NA,NA 28.11.2011 18:10:00,979,13.07,30.1,20,NA,NA 28.11.2011 18:20:00,979.2,13.1,30,20,NA

Re: [R] Time series plot with Date/Time showing on x-axis

2016-03-15 Thread PIKAL Petr
Behalf Of Kwabena > Fosu-Amankwah > Sent: Wednesday, March 16, 2016 4:28 AM > To: r-help@r-project.org > Subject: [R] Time series plot with Date/Time showing on x-axis > > I would be very grateful if someone can help me with the code or script > on how to plot a time series plot

[R] Time series plot with Date/Time showing on x-axis

2016-03-15 Thread Kwabena Fosu-Amankwah
I would be very grateful if someone can help me with the code or script on how to plot a time series plot with Date/Time showing on x-axis for the set of data below: Date/Time PR SW TP SM SHF CO2 28.11.2011 17:39:49 978.4 13.15 30.5 20 NA NA 28.11.2011 17:50:00 978.5 13.11 30.4 20 NA NA 28.11

Re: [R] time series plot: x-axis problem

2013-04-26 Thread Rui Barradas
rr, xlab="2012 - 2013", ylab="event freq", xaxt = "n", col="blue") axis(1, time(rr), lab1,cex.axis = .9, tcl = -.5, las = 2) A.K. - Original Message - From: Rui Barradas To: Jerry Cc: r-help@r-project.org Sent: Friday, April 26, 2013 5:25 AM S

Re: [R] time series plot: x-axis problem

2013-04-26 Thread arun
) A.K. - Original Message - From: Rui Barradas To: Jerry Cc: r-help@r-project.org Sent: Friday, April 26, 2013 5:25 AM Subject: Re: [R] time series plot: x-axis problem Hello, Try the following. (rr=ts(rr,start=c(2012,5),frequency=12)) plot(rr, xlab="2012 - 2013", ylab="event f

Re: [R] time series plot: x-axis problem

2013-04-26 Thread Rui Barradas
Hello, Try the following. (rr=ts(rr,start=c(2012,5),frequency=12)) plot(rr, xlab="2012 - 2013", ylab="event freq", xaxt = "n", col="blue") labs <- format(as.Date(time(rr)), "%b-%Y") axis(1, time(rr), labs, cex.axis = .9, tcl = -.5, las = 2) Hope this helps, Rui Barradas Em 25-04-2013 19:1

[R] time series plot: x-axis problem

2013-04-26 Thread Jerry
Hi, I'm trying to plot a simple time series. I'm running into an issue with x-axis The codes below will produce a plot with correct x-axis showing from Jan to Dec > rr=c(3,2,4,5,4,5,3,3,6,2,4,2) > (rr=ts(rr,start=c(2012,1),frequency=12)) > win.graph(width=6.5, height=2.5,pointsize=8) > plot(r

Re: [R] Time series plot shift

2011-08-21 Thread R. Michael Weylandt
Depending on the time series object you are using, the lag() function will do it. Read the documentation ?lag for details on your specific ts class. Michael Weylandt On Aug 21, 2011, at 3:04 PM, Andrey A wrote: > I have a plot and my x axis is Time in days, I need to shift it by +15 days, > h

[R] Time series plot shift

2011-08-21 Thread Andrey A
I have a plot and my x axis is Time in days, I need to shift it by +15 days, how do i do it? Thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

Re: [R] time series plot

2008-02-06 Thread jim holtman
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. > It all depends on how you constructed the x-axis. You can try abline(v=2008.25) On Feb 6, 2008 6:41 PM, Ana Quitério <[EMAIL PROTECTED]> wrote: > De

[R] time series plot

2008-02-06 Thread Ana Quit�rio
Dear all. I want to add a vertical line in my time series series plot. If i had an anual data I do: plot(data,v="2008"), but if I want to add a vertical line in fisrt quarter of 2008, how can i do? Thanks a lot Ana -- __ R-help@r-project.org mailing l