hyperoverlap_lda {hyperoverlap}R Documentation

Hyperoverlap visualisation using linear discriminant analysis (LDA)

Description

Hyperoverlap visualisation using linear discriminant analysis (LDA)

Usage

hyperoverlap_lda(x, return.plot=TRUE, visualise3d=FALSE, showlegend=TRUE)

Arguments

x

An hyperoverlap-class object.

return.plot

Logical. If TRUE, data are plotted using plot().

visualise3d

Logical. If FALSE, data are projected onto two axes (LDA1, residualPCA1). If TRUE, data are projected onto three axes (LDA1, residualPCA1, residualPCA2)

showlegend

Logical. Used for 3D plots.

Details

This function provides a way to visualise overlap (or non-overlap) between classes of high dimensional data. For inspection, it is useful to use the base graphics package (implemented by return.plot=TRUE). The transformed coordinates of each point are also returned as a dataframe, which can be plotted with user-defined parameters.

Value

Returns a dataframe with columns "Entity", "LDA1", "residualPCA1", "residualPCA2" (if visualise3d = TRUE)

See Also

hyperoverlap_detect

Examples

#using iris dataset reduced to two species
data = iris[which(iris$Species!=("versicolor")),]
x = hyperoverlap_detect(data[1:4], data$Species)
hyperoverlap_lda(x)


[Package hyperoverlap version 1.1.1 Index]