Learn R Programming

MDplot (version 0.3.1)

clusters: Cluster bar plot

Description

This function plots clusters over a set of trajectories as joint, coloured bar plots. The clusters are sorted beginning with the most populated one and then in descending order. Selections can be made.

Usage

clusters( clusters, clustersNumber = NA, legendTitle = "trajectories", barePlot = FALSE, ... )

Arguments

clusters
Matrix with clusters. Trajectories in rows, clusters in columns.
clustersNumber
When specified, only this number of clusters is shown.
legendTitle
The title of the legend.
barePlot
Boolean, indicating whether the plot is to be made without any additional information.
...
Additional arguments (ellipsis).

Examples

Run this code
# see "extdata/clusters_example.txt.gz" for format information
clusters( load_clusters( system.file( "extdata/clusters_example.txt.gz",
                                      package = "MDplot" ) ) )

Run the code above in your browser using DataLab