Learn R Programming

netCoin (version 2.1.49)

looking4clusters: Clustering determination and visualization

Description

looking4clusters Creates interactive clustering visualization plots from a matrix. It can also apply dimension reduction and clustering techniques.

Usage

looking4clusters(data, groups = NULL,
    components = FALSE, running_all = TRUE, distance = "euclidean",
    agglomeration = "complete", selectedk = NULL, perplex = 30,
    maxIter = 1000, threads = NULL, force_execution = FALSE)

Value

Object of class looking4clusters.

Author

David Barrios, Angela Villaverde and Carlos Prieto. Bioinformatics Service of Nucleus, University of Salamanca.

Arguments

data

A numeric data.frame or matrix where variables are in columns and samples are in rows.

groups

Factor/Vector which defines an input category for each sample which will be visualized in the output plot.

components

If TRUE, clustering algorithms are applied to main components obtained with PCA.

running_all

If TRUE, applies dimension reduction and clustering techniques if the input is a matrix like object.

distance

the distance measure to be used with hierarchical clustering algorithm. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given.

agglomeration

the agglomeration method to be used with hierarchical clustering algorithm. This should be (an unambiguous abbreviation of) one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC).

selectedk

Number of expected clusters given by the user. By default, the algorithm will run clustering algorithms with a number of clusters between 2 and 10. If selectedk is specified, a range of 5 units around the 'selectedk' will be used as number of clusters.

perplex

The perplexity parameter used for t-SNE algorithm execution (should not be bigger than 3 * perplexity < nrow(X)-1). This value effectively controls how many nearest neighbors are taken into account when constructing the embedding in the low-dimensional space (default: 30)

maxIter

The number of iterations used for t-SNE algorithm execution (default: 1000)

threads

The number of CPU threads for calculating a distance matrix. Default value is the amount of CPU cores available on the system.

force_execution

force the execution of some methods that could cause performance problems with large matrices.

Examples

Run this code
obj <- looking4clusters(iris[,1:4], groups=iris[,5], running_all=FALSE)

Run the code above in your browser using DataLab