R/plot_trajectories_per_clusters.R
plot_trajectories_per_cluster.Rd
Assemble a figure that plots a graph (or tree) per cluster where each driver is connected to its trajectories. This allows to determine the most frequent trajectories in a cluster.
plot_trajectories_per_cluster(x, min_counts = 5)
x | A revolver object with clusters computed. |
---|---|
min_counts | A scalare >= 1 to subset only trajectories observed
in |
A figure with multiple plots.
# Data released in the 'evoverse.datasets' data('TRACERx_NEJM_2017_REVOLVER', package = 'evoverse.datasets') # In at least 5 cases plot_trajectories_per_cluster(TRACERx_NEJM_2017_REVOLVER, min_counts = 5)#> Warning: At structural_properties.c:3346 :graph contains a cycle, partial result is returned# In 50% of the cluster's cases plot_trajectories_per_cluster(TRACERx_NEJM_2017_REVOLVER, min_counts = .5)#>#>#>#> Warning: At structural_properties.c:3346 :graph contains a cycle, partial result is returned#>#>#>#>#>#>#> Warning: At structural_properties.c:3346 :graph contains a cycle, partial result is returned#>#>