Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pairs.lda

Produce Pairwise Scatterplots from an 'lda' Fit


Description

Pairwise scatterplot of the data on the linear discriminants.

Usage

## S3 method for class 'lda'
pairs(x, labels = colnames(x), panel = panel.lda,
     dimen, abbrev = FALSE, ..., cex=0.7, type = c("std", "trellis"))

Arguments

x

Object of class "lda".

labels

vector of character strings for labelling the variables.

panel

panel function to plot the data in each panel.

dimen

The number of linear discriminants to be used for the plot; if this exceeds the number determined by x the smaller value is used.

abbrev

whether the group labels are abbreviated on the plots. If abbrev > 0 this gives minlength in the call to abbreviate.

...

additional arguments for pairs.default.

cex

graphics parameter cex for labels on plots.

type

type of plot. The default is in the style of pairs.default; the style "trellis" uses the Trellis function splom.

Details

This function is a method for the generic function pairs() for class "lda". It can be invoked by calling pairs(x) for an object x of the appropriate class, or directly by calling pairs.lda(x) regardless of the class of the object.

References

Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.

See Also


MASS

Support Functions and Datasets for Venables and Ripley's MASS

v7.3-54
GPL-2 | GPL-3
Authors
Brian Ripley [aut, cre, cph], Bill Venables [ctb], Douglas M. Bates [ctb], Kurt Hornik [trl] (partial port ca 1998), Albrecht Gebhardt [trl] (partial port ca 1998), David Firth [ctb]
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.