cont.spdf | R Documentation |
Plot (separately) the PDF of Continuous Random Variables
cont.spdf(dist, lo, up, para, para2, ymax, xl, yl, dcol, np = 100, xp)
dist |
Distribution name ("exp", "gamma", "weibull", "beta", "norm", "t", "chisq", "f") |
lo |
Lower limit of x-axis |
up |
Upper limit of x-axis |
para |
First parameter vector of the distribution |
para2 |
Second parameter vector (except "exp", "t", "chisq") |
ymax |
Upper limit of y-axis |
xl |
Label vector of x-axis |
yl |
Label vector of y-axis |
dcol |
Graph color vector |
np |
Number of plot points, Default: 100 |
xp |
Location vector for vertical lines |
None.
mu = c(0,0,2,2) sig=c(1,2,1,2) cont.spdf("norm", -7, 7, mu, sig, xp=mu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.