David,
I would do this with the HH package.
Rich
install.packages(HH) ## if you don't already have it
library(HH)
## the first call is to learn the number .8162 and see what the scaling is.
normal.and.t.dist(mu.H0=5.01, obs.mean=log(300), std.dev=.77,
Use.alpha.left=TRUE,
Hello,
I have this code to plot a certain normal distribution and represent the pnorm
value for a certain x:
x-300
xx - seq(2.5,7.5, by=0.1)
yy - dnorm(xx,5.01,0.77)
d-signif(pnorm(log(x), 5.01,0.77),4)
xpts - round(exp(0:8))
par(bg = antiquewhite)
plot(xx,yy, type=l, col=blue, lwd=2, xaxt=n,
Tena koe David
?polygon
should help you.
HTH
Peter Alspach
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of David Hervas Marin
Sent: Thursday, 27 January 2011 12:02 p.m.
To: R-Help
Subject: [R] Colour area under
3 matches
Mail list logo