plotBoxplotTraj: Plot Boxplot of 'traj' Object

Description Usage Arguments Details Author(s) See Also Examples

View source: R/plotBoxplotTraj.R

Description

Produce a boxplot of the values of the trajectories from each cluster at every time points.

Usage

1
plotBoxplotTraj(x, clust.num = NULL,  ...)

Arguments

x

traj object.

clust.num

Integer indicating the cluster number to plot.NULL to print all clusters. Defaults to NULL.

...

Arguments to be passed to plot.

Details

The function plots a boxplot of values of the trajectories in a cluster at each time point.

Author(s)

Dan Vatnik, Marie-Pierre Sylvestre
dan.vatnik@gmail.com

See Also

boxplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Setup data and time
data = example.data$data
time = example.data$time

# Run step1measures, step2factors and step3clusters with
# a predetermined number of clusters
s1 = step1measures(data,time, ID=TRUE)
s2 = step2factors(s1)
s3.4clusters = step3clusters(s2, nclust = 4)

# Plot boxplots
plotBoxplotTraj(s3.4clusters)

Example output

[1] "Correlation of m5 and m6 : 1"
[1] "Correlation of m12 and m13 : 1"
[1] "Correlation of m17 and m18 : 0.999"
[1] "m6 is removed because it is perfectly correlated with m5"  
[2] "m13 is removed because it is perfectly correlated with m12"
[1] "Computing reduced correlation e-values..."

traj documentation built on May 2, 2019, 2:39 a.m.