Plot histograms or density plots of data on a single Fisher linear discriminant.
ldahist(data, g, nbins = 25, h, x0 = - h/1000, breaks,
xlim = range(breaks), ymax = 0, width,
type = c("histogram", "density", "both"),
sep = (type != "density"),
col = 5, xlab = deparse(substitute(data)), bty = "n", …)vector of data. Missing values (NAs) are allowed and omitted.
factor or vector giving groups, of the same length as data.
Suggested number of bins to cover the whole range of the data.
The bin width (takes precedence over nbins).
Shift for the bins - the breaks are at x0 + h * (…, -1, 0, 1, …)
The set of breakpoints to be used. (Usually omitted, takes precedence
over h and nbins).
The limits for the x-axis.
The upper limit for the y-axis.
Bandwidth for density estimates. If missing, the Sheather-Jones selector is used for each group separately.
Type of plot.
Whether there is a separate plot for each group, or one combined plot.
The colour number for the bar fill.
label for the plot x-axis. By default, this will be the name of data.
The box type for the plot - defaults to none.
additional arguments to polygon.
Histogram and/or density plots are plotted on the current device.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.