visualiseBranchPointStats: Visualise Branch Point Stats

View source: R/TrajectoryGeometry.R

visualiseBranchPointStatsR Documentation

Visualise Branch Point Stats

Description

This function creates plots and extracts statistics for analysing branch points. It returns plots and underlying data for visualising distance metrics and -log10 transformed pvalues (comparison to random trajectories) for trajectories with different starting points.

Usage

visualiseBranchPointStats(branchPointData, average = "mean")

Arguments

branchPointData

- the result of analyseBranchPoint

average

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

Value

a list containing: branchPointValues - dataframe containing data underlying distance plot in long format pValues- dataframe containing data underlying p-value plot in long format distancePlot - ggplot object, violin plots of distance metric for sampled paths for different trajectory different starting points pValue - ggplot object, line plot of -log10 transformed p-values for comparing sampled paths to random paths for different trajectory starting points

Examples

cholBranchPointStats = visualiseBranchPointStats(chol_branch_point_results)

AnnaLaddach/TrajectoryGeometry documentation built on Oct. 18, 2024, 5:57 p.m.