# S3 method for formula
stemPlot(formula, data = parent.frame(), subset, ...)
Arguments
x
a numeric variable.
...
further arguments to be passed to or from methods.
grpvar
a factor variable. A stem plot of x will be created for
each level of the factor variable.
varname
name of the numeric variable. This is for printing the output
only. Change if you want to print out a name different from the actual
variable name.
grpvarname
name of the factor variable. This is for printing the
output only. Change if you want to print out a name different from the
actual variable name.
formula
a formula of the form x ~ grpvar where x is
numeric and grpvar is a factor variable.
data
a data frame with the variables in the formula.
subset
an optional expression specifying which observations to keep.
Methods (by class)
stemPlot(default): Stem and leaf plot
stemPlot(formula): Stem and leaf plot
Author
Laura Chihara
Details
This command is just an enhanced version of R's stem command. It
allows the user to create the stem plot for a numeric variable grouped by
the levels of a factor variable.