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
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
- 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-
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
Not reproducible (sample data missing).
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
---
Jeff NewmillerThe . . Go Live...
DCN:Basics:
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",
6 matches
Mail list logo