cont.spdf: Plot PDF of Continuous Random Variables

Description Usage Arguments Value Examples

View source: R/ch8-fn.R

Description

Plot (separately) the PDF of Continuous Random Variables

Usage

1
cont.spdf(dist, lo, up, para, para2, ymax, xl, yl, dcol, np = 100, xp)

Arguments

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

Value

None.

Examples

1
2
3
mu = c(0,0,2,2)
sig=c(1,2,1,2)
cont.spdf("norm", -7, 7, mu, sig, xp=mu)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.