densityPlot | R Documentation |
This function produces conditional density plots at input covariate values.
densityPlot( X, minY = NULL, maxY = NULL, nGrid = 100, yGrid = NULL, model = NULL, trueDensity = NULL, plot = TRUE, layout = NULL, factor.levels = NULL, strip.font.size = NULL, main = NULL )
X |
the covariate matrix to predict conditional densities at; each row represents an observation vector. |
minY |
the minimal possible response value. If |
maxY |
the maximal possible response value. For more, see |
nGrid |
the number of response grid points. For more, see |
yGrid |
the response grid to evaluate conditional densities at. Default is NULL. |
model |
a conditional density model with a |
trueDensity |
true conditional density function. The call |
plot |
if |
layout |
a numeric vector of length 2 giving the number of columns, rows in the multipanel display. In general, a conditioning plot in lattice consists of several panels arranged in a rectangular array and layout determines this arrangement. Default is to arrange panels in an approximately square array. |
factor.levels |
vector of character strings or expressions giving the levels of the conditioning variable. The |
strip.font.size |
a numeric value indicating the font size on strips in the multipanel density plots. Default is 0.8. |
main |
a main title for the plot. |
The function outputs a lattice plot of conditional densities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.