View source: R/TrajectoryGeometry.R
visualiseTrajectoryStats | R Documentation |
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.
visualiseTrajectoryStats(
traj1Data,
metric,
average = "mean",
traj2Data = list()
)
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 |
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
cholResultDistance = visualiseTrajectoryStats(chol_answers, "distance")
hepResultDistance = visualiseTrajectoryStats(hep_answers, "distance")
distanceComparison = visualiseTrajectoryStats(chol_answers, "distance",
traj2Data = hep_answers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.