binsim <- rbinom(10000, 20, 0.3)
Xstar <- (binsim - np) / sqrt(npq)
hist(Xstar)
Now I want to add a standard normal distribution curve on my histogram. How to do that?
binsim <- rbinom(10000, 20, 0.3)
Xstar <- (binsim - np) / sqrt(npq)
hist(Xstar)
Now I want to add a standard normal distribution curve on my histogram. How to do that?
x <- seq(-4., 4., by = .01)
y <- dnorm(x, mean = 0, sd = 1)
plot(x,y, col="blue")
but I need this standard normal curve being superimposed on my original histogram.
Okay, now I figure it out. I use par
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.