Learn R Programming

MDplot (version 0.3.1)

clusters_ts: Cluster timeseries plot

Description

This function plots distributions between clusters over time. In the top sub-plot, the overall distribution is given, while the timeseries is given at the bottom. The clusters are sorted beginning with the most populated one and then in descending order. Selections can be made, clusters that are not selected do also not appear in the timeseries plot (white areas).

Usage

clusters_ts( clustersDataTS, clustersNumber = NA, selectTraj = NA, selectTime = NA, timeUnit = NA, snapshotsPerTimeInt = 1000, ... )

Arguments

clustersDataTS
List of cluster information as provided by load_clusters_ts(), the associated loading function.
clustersNumber
Integer, specifying the number of clusters that is to be plotted.
selectTraj
Vector of indices of trajectories that are to be plotted (as given in the input file).
selectTime
Range of time in snapshots, which is to be plotted.
timeUnit
Abbreviation of time unit.
snapshotsPerTimeInt
Specifies, how many snapshots make up one time unit.
...
Additional arguments (ellipsis).

Examples

Run this code
# see "extdata/clusters_ts_example.txt.gz" for format information
clusters_ts( load_clusters_ts( system.file( "extdata/clusters_ts_example.txt.gz",
                               package = "MDplot" ),
                               lengths = c( 4000, 4000, 4000, 4000, 4000, 4000 ) ),
             clustersNumber = 7 )

Run the code above in your browser using DataLab