Learn R Programming

metaplot (version 0.3.2)

densplot.data.frame: Densplot Method for Data Frame

Description

Plot density for object of class 'data.frame'. Parses arguments and generates the call: fun(x, xvar, groups, facets,...).

Usage

# S3 method for data.frame
densplot(x, ..., fun = getOption("metaplot_dens",
  "densplot_data_frame"))

Arguments

x

data.frame

...

passed to fun

fun

plotting function

See Also

Other univariate plots: densplot_data_frame, densplot, metaplot.data.frame

Other densplot: densplot_data_frame, densplot

Examples

Run this code
# NOT RUN {
densplot(Theoph, conc, grid = TRUE )
densplot(Theoph, conc, Subject )
densplot(Theoph, conc, , Subject )
attr(Theoph,'title') <- 'Theophylline'
densplot(Theoph, conc, main= function(x,...)attr(x,'title'))
densplot(Theoph, conc, sub= function(x,...)attr(x,'title'))
# }

Run the code above in your browser using DataLab