Learn R Programming

dynplot (version 1.1.2)

plot_linearised_comparison: Compare two trajectories as a pseudotime scatterplot

Description

Compare two trajectories as a pseudotime scatterplot

Usage

plot_linearised_comparison(
  traj1,
  traj2,
  reorder = TRUE,
  margin = 0.05,
  reorder_second_by = c("mapping", "optimisation")
)

Arguments

traj1

The first trajectory

traj2

The second trajectory

reorder

Whether to reorder the trajectory

margin

A margin between trajectory segments.

reorder_second_by

How to reorder the second trajectory, either by mapping the milestones from both trajectories (mapping), or by trying to correlate the orderings between the two trajectories (optimisation)

Value

A scatterplot comparison ggplot of two linearised trajectories.

Examples

Run this code
# NOT RUN {
data(example_bifurcating)
plot_linearised_comparison(example_bifurcating, example_bifurcating)
# }

Run the code above in your browser using DataLab