Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


ClusterSignificance (version 1.0.3)

Mlp-class: projection of points into one dimension

Description

project points onto the mean based line

Usage

"getData"(x, n = NULL)
"initialize"(.Object, ..., groups, points.orig, line, points.onedim)
"plot"(x, y, steps = "all", ...)
mlp(mat, ...)
"mlp"(mat, groups, ...)
"show"(object)

Arguments

x
matrix object for the function mlp otherwise it is a Mlp object
n
data to extract from Mlp (NULL gives all)
.Object
internal object
...
additional arguments to pass on
groups
vector in same order as rows in matrix
points.orig
multidimensional points describing the original data
line
multidimensional points describing a line
points.onedim
a vector of points
y
default plot param, which should be set to NULL(default: NULL)
steps
1,2,3,4,5,6 or "all"
mat
matrix with samples on rows, PCs in columns. Ordered PCs, with PC1 to the left.
object
Mlp object

Value

The mlp function returns an object of class Mlp

Details

projection of the points on a line separating the mean of two groups. mlp is the abbreviation of 'mean line projection'. The Function accepts at the moment only two groups and two PCs at the time.

An Object containing results from a mean line projection reduction to one dimension.

The group and the one dimensional points are the most important information to carry out a classification using the classify() function. But as a help to illustrate the details of the dimension reduction, the information from some critical steps are stored in the object. To visually explore these there is a dedicated plot method for Mlp objects, use plot().

Examples

Run this code

#use demo data
data(mlpMatrix)
groups <- rownames(mlpMatrix)

#run function
prj <- mlp(mlpMatrix, groups)

#getData accessor
getData(prj)

#getData accessor specific
getData(prj, "line")

#plot result
plot(prj)

Run the code above in your browser using DataLab