visualiseTrajectoryStats: Visualise Trajectory Stats

View source: R/TrajectoryGeometry.R

visualiseTrajectoryStatsR Documentation

Visualise Trajectory Stats

Description

This function creates plots and extracts statistics for comparisons of metrics for sampled paths to random paths. It can also create plots for comparing two sets of sampled paths by providing the traj2Data argument.

Usage

visualiseTrajectoryStats(
  traj1Data,
  metric,
  average = "mean",
  traj2Data = list()
)

Arguments

traj1Data

- the result of analyseSingleCellTrajectory

metric

- either "pValue" or "distance"

average

- if there are multiple distances available for each sampled trajectory, calculate the average using "mean" or "median" (defaults to "mean").

traj2Data

- traj2Data either an empty list or the result of analyseSingleCellTrajectory

Value

a list containing: stats - output of wilcox test (paired if comparing sampled to random paths, unpaired if comparing sampled paths for two different trajectories) values - dataframe containing plotted data in long format plot - ggplot object

Examples

cholResultDistance = visualiseTrajectoryStats(chol_answers, "distance")
hepResultDistance = visualiseTrajectoryStats(hep_answers, "distance")
distanceComparison = visualiseTrajectoryStats(chol_answers, "distance",
    traj2Data = hep_answers)

AnnaLaddach/TrajectoryGeometry documentation built on Oct. 14, 2022, 10:27 a.m.