Learn R Programming

lpda (version 1.2.1)

plot.lpda: Plot method for lpda classification

Description

plot.lpda is applied to an lpda class object. It shows a plot in two dimensions with the distances to the computed hyperplane of each individual coloring each case with the real class.

Usage

# S3 method for lpda
plot(x, PCscores = FALSE, main = NULL, xlab = NULL, ylab = NULL,
                    col= NULL, pch = NULL, lty = NULL,
                    legend.pos = "topright",...)

Value

Two dimensional plot representing the distances to the computed hyperplane of each individual colored with the real class.

Arguments

x

Object of class inheriting from "lpda"

PCscores

Logical to show the first 2 PCscores. Only possible when PCA is applied.

main

An optional title for the plot.

xlab

An optional title for x-axis.

ylab

An optional title for y-axis.

col

An optional vector with colours for the groups.

pch

An integer specifying the symbol to be used in plotting points. When NULL, pch=20.

lty

The line type. If it is not specified, lty = 2 for the distances to the hiperplane and lty = 1 for PCs plot

legend.pos

The position for the legend. By default it is topright. NULL when no legend is required.

...

Other arguments passed.

Author

Maria Jose Nueda, mj.nueda@ua.es

See Also

lpda