plotED: visualize an eddDist object

Description Usage Arguments Author(s) Examples

Description

plots an eddDist model; can superimpose density sketch from transformed data

Usage

1
plotED(x, y, data=NULL, is.centered=FALSE, ...)

Arguments

x

eddDist object

y

not used

data

optional vector of data to be superimposed in the form of a kernel density estimate

is.centered

is.centered: logical indicating that the data vector has zero median and unit mad

...

...: options passed to curve

Author(s)

Vince Carey <stvjc@channing.harvard.edu>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#
# show the first 8 supplied reference dists
if (interactive()){
omf <- par()$mfrow
oas <- par()$ask
on.exit(par(mfrow=omf,ask=oas))
par(mfrow=c(4,2))
par(ask=TRUE)
}
set.seed(1234)
for (i in 1:8) plotED(eddDistList[[i]])
# illustrate the superposition
if (interactive()) par(mfrow=c(1,1))
x <- rnorm(30,3,4)
plotED(N01,data=x) # relocates/scales x
y <- 12*rbeta(30,2,8)+4
plotED(B28,data=y)

edd documentation built on May 2, 2019, 6:10 p.m.