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
Hi
From your data is not clear if your first column is in POSOX format or
character/factor. You can check it by
?str
If it is POSIX, what is wrong in
with(yourdata, plot(Date/Time, SW))
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of
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
)
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
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
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
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
7 matches
Mail list logo