s1d.density(score, fac = gl(1, NROW(score)), kernel = c("normal", "box",
"epanech", "biweight", "triweight"), bandwidth = NULL, gridsize = 450,
col = TRUE, fill = TRUE, facets = NULL, plot = TRUE, storeData = TRUE,
add = FALSE, pos = -1, ...)scorebkdescore so that subsets
of the data are represented on different sub-graphicsFALSE, only the names of the data
arguments are storedTRUE, the graphic is superposed to the graphics
already plotted in the current devicestoreData is
FALSEadegpar and trellis.par.get)ADEg (subclass C1.density) or ADEgS (if add is TRUE and/or
if facets or data frame for score or data frame for fac are used).
The result is displayed if plot is TRUE.kernel, bandwidth and gridsize are passed as parameters to bkde function of the KernSmooth package.
Graphical parameters for rugs are available in plines of adegpar and the ones for density curves filled in ppolygons.
Some appropriated graphical parameters in p1d are also available.C1.density
ADEg.C1 score <- c(rnorm(1000, mean = -0.5, sd = 0.5), rnorm(1000, mean = 1))
fac <- rep(c("A", "B"), each = 1000)
s1d.density(score, fac, col = c(2, 4), p1d.reverse = TRUE)Run the code above in your browser using DataLab