densityplot: Make Kernel density plot

Description Usage Arguments Value Examples

View source: R/densityplot.R

Description

Make Kernel density plot

Usage

1
densityplot(formula, data, main = "", xlab = "", ylab = "", ...)

Arguments

formula

an R model formula, of the form ~ variable to estimate the unconditional density of variable, or variable ~ factor to estimate the density of variable within each level of factor.

data

an optional data frame containing the data.

main

main title of plot

xlab

label for the horizontal-axis; defaults to the name of the variable x.

ylab

label for the vertical axis; defaults to "Density".

...

arguments to be passed to plot

Value

This function return NULL invisibly and draw graphs.

Examples

1
2
3
  require(moonBook)
  data(acs)
  densityplot(age~Dx,data=acs)

moonBook documentation built on Jan. 13, 2021, 6:43 a.m.