clusters_ts {MDplot} | R Documentation |
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 and 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 |
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). |
Value
Returns a summary (n+1)
xm
-matrix with n
being the number of input trajectories and m
the number of different clusters (which have been plotted). Each element in the matrix holds the number of snapshots, the respective cluster occured in the respective trajectory. In addition, the first line is the overall summary counted over all trajectories.
Author(s)
Christian Margreitter
Examples
# GROMOS (see load_clusters_ts() for other input possibilities)
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 )