fpPlot: Function to plot the distributions and differences of...

Description Usage Arguments Author(s) References See Also Examples

Description

This function plots kernel-based densities as well as density differences for three or more data sets (fp1 objects).

Usage

1
2
3
## S3 method for class fp1
plot(x, ..., ylab = c("Density", "Density difference"), xlim = NULL)
fpPlot(x, ..., ylab = c("Density", "Density difference"), xlim = NULL)

Arguments

x

an fp1 object

ylab

y-axis labels of the two plots

xlim

the x limits (x1, x2) of the two plots

...

additional arguments to pass to both plot.density() and matplot ()

Author(s)

Leendert van Maanen (l.vanmaanen@uva.nl)

References

Van Maanen, L. & Van Rijn, H (submitted). The fixed-point property in concurrent processing. Manuscript submitted for publication

See Also

fpGet,fpDensDiff,plot.density,matplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## generate data
p <- c(.1,.5,.9)
rt <- sapply(1:3, function(i) {rnormMix(1000, c(1,2), c(1,1), p[i])})
dat <- data.frame(rt=c(rt), cond=rep(1:3, each=1000))

## compute fp1 object
fpobject <- fpGet(dat, 1000, bw=.75)

## plot it
par(mfrow=c(1,2))
plot(fpobject)

## alternatives
plot.fp1(fpobject)
fpPlot(fpobject)

JimGrange/Van-Maanen-fp documentation built on May 7, 2019, 10:51 a.m.