Re: [R] Add the Gauss curve on histogram

2015-03-17 Thread varin sacha
Sorry for that Rolf, Yes, it perfectly works. Many thanks. Cheers, - Mail original - De : Rolf Turner À : varin sacha Cc : R help Envoyé le : Mardi 17 mars 2015 12h40 Objet : Re: [R] Add the Gauss curve on histogram Please keep your replies on-list. I am not your private

Re: [R] Add the Gauss curve on histogram

2015-03-17 Thread Rolf Turner
UE))) OR x <- seq(from = min(newdata$math.test, na.rm=TRUE), to = max(newdata$math.test, na.rm=TRUE, length=100)) lines(x, dnorm(x, mean(newdata$math.test, na.rm = TRUE), sd(newdata$math.test, na.rm = TRUE))) - Mail original - De : Rolf Turner À : varin sacha ; "r-help@r-projec

Re: [R] Add the Gauss curve on histogram

2015-03-17 Thread varin sacha
- Mail original - De : Jeff Newmiller À : varin sacha ; "r-help@r-project.org" Cc : Envoyé le : Mardi 17 mars 2015 2h30 Objet : Re: [R] Add the Gauss curve on histogram Not reproducible (sample data missing). http://stackoverflow.com/questions/5963269/how-to-make-a-

Re: [R] Add the Gauss curve on histogram

2015-03-16 Thread Rolf Turner
On 17/03/15 13:34, varin sacha wrote: Dear R-Experts, I can easily plot an histogram and its density curve. But when I try to add the Gauss curve on the histogram with the following Rcode here below, I don't get it. What is wrong ? Or what is missing in my code ? Coherency and appropriate chec

Re: [R] Add the Gauss curve on histogram

2015-03-16 Thread Jeff Newmiller
Not reproducible (sample data missing). http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example --- Jeff NewmillerThe . . Go Live... DCN:Basics:

[R] Add the Gauss curve on histogram

2015-03-16 Thread varin sacha
Dear R-Experts, I can easily plot an histogram and its density curve. But when I try to add the Gauss curve on the histogram with the following Rcode here below, I don't get it. What is wrong ? Or what is missing in my code ? ##Plot an histogram h=hist(newdata$math.test, prob=TRUE, col="blue",