Skip to content
Prev 316343 / 398506 Next

Adding 95% contours around scatterplot points with ggplot2

Hi Nate,

You can make it less busy using the bins argument. This is not
documented, except in the examples to stat_contour, but try

ggplot(data=data, aes(x, y, colour=(factor(level)), fill=level))+
	geom_point()+
	stat_density2d(bins=2)

HTH,
Ista
On Mon, Jan 28, 2013 at 2:43 PM, Nathan Miller <natemiller77 at gmail.com> wrote: