looking4clusters Creates interactive clustering visualization plots
from a matrix. It can also apply dimension reduction and clustering techniques.
looking4clusters(data, groups = NULL,
components = FALSE, running_all = TRUE, distance = "euclidean",
agglomeration = "complete", selectedk = NULL, perplex = 30,
maxIter = 1000, threads = NULL, force_execution = FALSE)Object of class looking4clusters.
David Barrios, Angela Villaverde and Carlos Prieto. Bioinformatics Service of Nucleus, University of Salamanca.
A numeric data.frame or matrix where variables are in columns and samples are in rows.
Factor/Vector which defines an input category for each sample which will be visualized in the output plot.
If TRUE, clustering algorithms are applied to main components obtained with PCA.
If TRUE, applies dimension reduction and clustering techniques if the input is a matrix like object.
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.
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).
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.
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)
The number of iterations used for t-SNE algorithm execution (default: 1000)
The number of CPU threads for calculating a distance matrix. Default value is the amount of CPU cores available on the system.
force the execution of some methods that could cause performance problems with large matrices.
obj <- looking4clusters(iris[,1:4], groups=iris[,5], running_all=FALSE)
Run the code above in your browser using DataLab