Description Usage Arguments Author(s) References See Also Examples
This function plots kernel-based densities as well as density differences for three or more data sets (fp1 objects).
1 2 3 |
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 () |
Leendert van Maanen (l.vanmaanen@uva.nl)
Van Maanen, L. & Van Rijn, H (submitted). The fixed-point property in concurrent processing. Manuscript submitted for publication
fpGet
,fpDensDiff
,plot.density
,matplot
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.