Description Usage Arguments Value
Plots a line and scatter plot faceted by sequence and cluster with a few visual aids. If it's a permutation, maybe provide the actual clusters so that the theming can work properly. sort the input by outcome to make it faster.
1 2 3 4 5 6 7 8  | faceted.line.plot(
  data.dt,
  sequence.dt,
  cluster.dt,
  actual.cluster.dt = NULL,
  min.time = 0,
  max.time = NULL
)
 | 
data.dt | 
 data.table with columns participant, cluster, time, and outcome. Outcome should be continuous.  | 
sequence.dt | 
 data.table with information about the sequences, with columns sequence, transition.time, and intervention.time.  | 
cluster.dt | 
 data.table with the correspondence between cluster and sequence, with columns cluster and sequence.  | 
actual.cluster.dt | 
 This function is partly designed to visualise permutation statistics, if cluster.dt is permuted, then you might provide a similar data.table with the actual correpsondence between cluster and sequence so that the graph can be themed as such (i.e. data colours matching original sequence).  | 
min.time | 
 Numeric minimum time on x axis (Default: 0)  | 
max.time | 
 Numeric maximum time on x axis, will try to automatically generate from sequence.dt if NULL (Default: NULL)  | 
A ggplot with data faceted by sequence and cluster.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.