visualiseTrajectoryStats: Visualise Trajectory Stats

Description Usage Arguments Value Examples

View source: R/TrajectoryGeometry.R

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

1
2
3
4
5
6
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

1
2
3
4
cholResultDistance = visualiseTrajectoryStats(chol_answers, "distance")
hepResultDistance = visualiseTrajectoryStats(hep_answers, "distance")
distanceComparison = visualiseTrajectoryStats(chol_answers, "distance",
    traj2Data = hep_answers)

AnnaLaddach/TrajectoryGeometry documentation built on Jan. 28, 2021, 10:41 a.m.