> I have already checked the ggplot book but
> thıs book only has tıme serıes lıne graph.
> Moreover , ggplot book never show how to
> draw ACF and Pacf graph of tıme serıes.
> Do you have another ıdea of tıme serıes graph?
>
> On 8 Haziran, 03:35, Mike Lawrence <
Mike.Lawre...@dal.ca> wrote:
>
On Jun 9, 4:25 pm, serdar neslihanoglu <
snes1...@gmail.com> wrote:
> ok
> I have already checked the ggplot book but
> thıs book only has tıme serıes lıne graph.
> Moreover , ggplot book never show how to
> draw ACF and Pacf graph of tıme serıes.
> Do you have another ıdea of tıme serıes graph?
>
Hi Serdar (and ggplot people at large, just joined the list...)
I don't think ggplot has anything to calculate ACF/PACF but that's ok,
you can calculate the values with R and plot them with ggplot:
#lh is an example dataset which is a time series
#?acf should let you decide how to handle your data
d <- acf(lh, plot=FALSE)
df <- data.frame(d$lag, d$acf)
p <- ggplot(df, aes(d.lag, d.acf))
p + geom_bar(stat='identity')
I don't know how to make the bars as skinny as ACF plots usually are,
I tought geom_bar(width=....) would do the trick but it doesn't appear
to...
Hope that helps,
David