Hi Luciano,
thanks for the hint. unfortunately it did not help, looks similar to a
histogram with binwidth=0.1
i tried the following:
qplot(lag,acf,data=d, geom="linerange",ymin=min(acf),ymax=max(acf))
+geom_hline(yintercept=0,color="red",alpha=0.9,size=0.2)
and all i get is vertical lines from the max to the min of acf, which
look all the same for every lag...
On May 19, 6:16 pm, Luciano Selzer <
luciano.sel...@gmail.com> wrote:
> Hi Matt, maybe you could use geom_linerange and make ymin = 0 and ymax = acf
> ? That should the trick.
>
> Cheers
> Luciano
>
> 2010/5/19 ran2 <
matthias.bann...@googlemail.com>
>
>
>
> > Dear all,
>
> > maybe i am just sitting too long in front of my computer (or simply
> > not long enough), but i can´t get it done:
>
> > i´d like to plot something like the following with ggplot:
>
> > plot(b$acf,type="h")
>
> > What I do in ggplot is:
>
> > qplot(lag,acf,data=d)
> > +geom_hline(yintercept=0,color="red",alpha=0.9,size=0.2)
> > +geom_hline(yintercept=qnorm((1 + 0.95)/2)/sqrt(b
> > $n.used),color="blue") +geom_hline(yintercept=(qnorm((1 + 0.95)/2)/
> > sqrt(b$n.used))*(-1),color="blue")
>
> > which gives me a nice plot with all the CI stuff that plot.acf offers.
> > Unfortunately I just dots, or lines. The "bars" geom does not work or
> > is not supposed to work with this. I need to get the lags visualized
> > as bars instead of points. In this case the bars are not frequencies
> > like in histograms.
>
> > Thx for any help on advance
>
> > best
>
> > matt
>
> > --
> > You received this message because you are subscribed to the ggplot2 mailing
> > list.
> > Please provide a reproducible example:
http://gist.github.com/270442
>
> > To post: email
ggp...@googlegroups.com
> > To unsubscribe: email
ggplot2+u...@googlegroups.com<
ggplot2%2Bunsu...@googlegroups.com>