Displaying 2 results from an estimated 2 matches for "nggi".
Did you mean:
ngi
2008 Jun 25
1
confidence bounds using contour plot
...onfidencebound <- quantile(kerneld$z, probs= 0.95)
plot(x, y, pch=19, cex=0.5)
contour(kerneld, levels = confidencebound, col="red", add = TRUE)
--
How can I calculate the right contour containing 95% of the values?
Thank's for your help.
Pascal
R 2.7.0, Win XP
--
Pascal H?nggi
Universit?t Bern
Geographisches Institut, Gruppe f?r Hydrologie
Hallerstrasse 12
CH-3012 Bern
+41 (0)31 631 54 71
pascal.haenggi at hydrologie.unibe.ch
http://www.hydrologie.unibe.ch
--
2012 Mar 03
2
contour for plotting confidence interval on scatter plot of bivariate normal distribution
Dear all,
I created a bivariate normal distribution:
set.seed(138813)
n<-100
x<-rnorm(n); y<-rnorm(n)
and plotted a scatterplot of it:
plot(x,y)
Now I'd like to add the 2D-standard deviation.
I found a thread regarding plotting arbitrary confidence boundaries from
Pascal H?nggi
http://www.mail-archive.com/r-help at r-project.org/msg24013.html
which cites the even older thread
http://tolstoy.newcastle.edu.au/R/help/03b/5384.html
As I am unfortunately only a very poor R programmer, the code of Pascal
H?nggi is a myth to me and I am not sure whether I was able to translate...