Function which plots the trajectory of all the clusters given The function will split the clusters into groups of 8 to keep the figures clean. If multiple figures are created, they will be names 1_of_x until it reaches x_of_x.

wrapper_cluster_trajectory(
  object,
  cluster_traj_dta,
  mean_cluster_traj_dta,
  yaxis_name,
  log_TP = FALSE,
  plot_name = "Ctraj"
)

Arguments

object

A timeseries object

cluster_traj_dta

The trajectory data for all clusters being calculated The data is calculated/obtained from calculate_cluster_traj_data function

mean_cluster_traj_dta

The mean value for each clusters trajectory, the data is calculated/obtained from calculated_mean_cluster_traj function

yaxis_name

Name given to the y axis - used to adjust if the data is scaled or not

log_TP

Boolean indicating if timepoints (x axis) should be log10 transformed

plot_name

The name given to the plot file as it is saved

Value

None