powered by
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, ... )
Returns the result of density
density
A data.frame
Name of the variable to be plotted
Adjustment factor for the bandwidth of the density estimate
line width
Color to fill the area under the density estimate
Label for the variable
Title for plot
If TRUE
TRUE
Other arguments passed to plot.density
plot.density
plotDensity(Paivio, "imagery", anno=TRUE) plotDensity(Paivio, "imagery", anno=TRUE, adjust=1.5) plotDensity(Paivio, "syl") plotDensity(TWP, "imagery", anno=TRUE)
Run the code above in your browser using DataLab