plotDensity | R Documentation |
Plots the distribution of a variable with a density estimate and a rug plot
plotDensity(
data,
var,
adjust = 1,
lwd = 2,
fill = rgb(1, 0, 0, 0.2),
xlab = NULL,
main = NULL,
anno = FALSE,
...
)
data |
A data.frame |
var |
Name of the variable to be plotted |
adjust |
Adjustment factor for the bandwidth of the density estimate |
lwd |
line width |
fill |
Color to fill the area under the density estimate |
xlab |
Label for the variable |
main |
Title for plot |
anno |
If |
... |
Other arguments passed to |
Returns the result of density
plotDensity(Paivio, "imagery", anno=TRUE)
plotDensity(Paivio, "imagery", anno=TRUE, adjust=1.5)
plotDensity(Paivio, "syl")
plotDensity(TWP, "imagery", anno=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.