Brandon,
That did it! Thanks very much. I could swear I tried that exact
combination, but you know how that goes. Since they're all using
mydata, it also works as:
ggplot(data=mydata) +
geom_histogram( aes(posttest, ..density..) ) +
geom_density( aes(posttest, ..density..) ) +
geom_rug( aes(posttest) )
Thanks,
Bob
On Feb 5, 4:52 pm, Brandon Hurr <
brandon.h...@gmail.com> wrote:
> Bob,
>
> I could be wrong, but this seemed to work...
>
> ggplot() +
> geom_histogram(data=mydata, aes(posttest, ..density..) ) +
> geom_density(data=mydata, aes(posttest, ..density..) ) +
> geom_rug(data=mydata, aes(posttest) )
>
> Not sure why, but it complained with
> *Error: ggplot2 doesn't know how to deal with data of class uneval*
> .... until I told it what the data was for every geom. :/
>
> Output attached.
>
> B
>
> > To unsubscribe: email
ggplot2+u...@googlegroups.com<
ggplot2%2Bunsu...@googlegroups.com>
> > More options:
http://groups.google.com/group/ggplot2
>
>
>
> hist.dens.rug.png
> 219KViewDownload