Plot a feature's dynamics across pseudotime
plot_trajectory_profile.RdPlot a feature's dynamics across pseudotime
Usage
plot_trajectory_profile(
proj,
trajectory = "trajectory",
color_by = "cell_metadata",
col_name = trajectory,
log2_norm = NULL,
impute_weights = NULL,
continuous_set = "horizonExtra",
quant_cut = c(0.01, 0.99),
smooth = TRUE,
smooth_span = 0.75,
size = 0.5,
rastr = FALSE
)Arguments
- proj
(MarchRProject) Project with a fitted trajectory.
- trajectory
(character) Pseudotime column name. Default "trajectory".
- color_by
(character) "cell_metadata" or an assay name. Default "cell_metadata".
- col_name
(character) Metadata column or feature name for the y axis. Default
trajectory.- log2_norm
(logical/NULL) log2 feature values; auto for GeneScoreMatrix if NULL. Default NULL.
- impute_weights
(list/NULL) Impute weights from
get_impute_weights(). Default NULL.- continuous_set
(character) Continuous palette for the pseudotime color. Default "horizonExtra".
- quant_cut
(numeric/NULL) Quantile clip for the y values. Default c(0.01, 0.99).
- smooth
(logical) Overlay a
geom_smoothtrend line. Default TRUE.- smooth_span
(numeric) loess span for the trend line. Default 0.75.
- size
(numeric) Point size. Default 0.5.
- rastr
(logical) Rasterize points. Default FALSE.
Details
Ports the pseudotime-vs-value panel of ArchR's plotTrajectory (its second
list element). Compose with the embedding panel from plot_trajectory() using
patchwork (plot_trajectory(...) + plot_trajectory_profile(...)).