plotCluster {tscR} | R Documentation |
Draw trajectories and are colored based on their clusters
plotCluster(data, clust, ncluster, ...)
data |
Numeric data frame or matrix with de original data. SummarizedExperiment object can be provided for compatibility with bioconductor container (for more information see vignette). |
clust |
Object of class pam or partition obtained from getClusters output. |
ncluster |
When nclust = 'all', plots all trajectories and cluster together in a single plot. If it's an integer, it draws only trajectories that belong to that cluster. Finally, if it is a numeric vector, it draws trajectories corresponding to each cluster within a subplot. |
... |
Other arguments to pass to importFromSE if _x_ is SummarizedExperiment-class. |
It draws trajectories where x axis is time data and y axis trayectory values.
Plot clustered trayectories
Fernando Pérez-Sanz (fernando.perez8@um.es)
Miriam Riquelme-Pérez (miriam.riquelmep@gmail.com)
matplot, plotClusterSenator,
importFromSE.
data(tscR) data <- tscR time <- c(1,2,3) fdist <- frechetDistC(data, time) fclust <- getClusters(fdist, 3) plotCluster(data, fclust, 'all')