search for: 85q4sq9q3v8

Displaying 1 result from an estimated 1 matches for "85q4sq9q3v8".

2013 Jan 28
1
Adding 95% contours around scatterplot points with ggplot2
...uot;ovals"/95% contours drawn around the points by "level" to capture the different density distributions without the visualization being heavily influenced by outliers. I have looked into the code provided here from Hadley https://groups.google.com/forum/?fromgroups=#!topic/ggplot2/85q4SQ9q3V8 using the mvtnorm package and the dmvnorm function, but haven't been able to get it work for my data example. The calculated densities are always zero (at this step of Hadley's code: dgrid$dens <- dmvnorm(as.matrix(dgrid), ex_mu, ex_sigma) ) I appreciate any assistance. Thanks, Nate...