Re: [R] how to overlay 2d pdf atop scatter plot using ggplot2

2017-10-08 Thread Ulrik Stervbo
How about geom_contour()? Am So., 8. Okt. 2017, 20:52 schrieb Ranjan Maitra : > Hi, > > I am no expert on ggplot2 and I do not know the answer to your question. I > looked around a bit but could not find an answer right away. But one > possibility could be, if a direct approach

Re: [R] how to overlay 2d pdf atop scatter plot using ggplot2

2017-10-08 Thread Ranjan Maitra
Hi, I am no expert on ggplot2 and I do not know the answer to your question. I looked around a bit but could not find an answer right away. But one possibility could be, if a direct approach is not possible, to draw ellipses corresponding to the confidence regions of the multivariate t density

[R] how to overlay 2d pdf atop scatter plot using ggplot2

2017-10-08 Thread Big Floppy Dog
Note: I have posted this on SO also but while the question has been upvoted, there has been no answer yet. https://stackoverflow.com/questions/46622243/ggplot-plot-2d-probability-density-function-on-top-of-points-on-ggplot Apologies for those who have seen it there also but I thought that this