Plot trend of the single gene across the binned pseudotime.
plotTrend(
scmpObj,
feature_id,
xlab = "Pooled Pseudotime",
ylab = "Pseudobulk Expression",
smoothness = 0.01,
logs = TRUE,
logType = "log",
pseudoCount = 1,
significant = TRUE,
summary_mode = "median",
curves = TRUE,
lines = FALSE,
points = TRUE
)
An object of class ScMaSigPro
.
Name of the gene to be plotted.
X-axis label. (Default is "Pooled Pseudotime")
Y-axis label. (Default is "Pseudobulk Expression")
How smooth the trend should be. Setting to higher values will result in more linear trends. (Default is 0.01)
Whether to log transform counts. (Default is TRUE)
How to log transform the values. Available options 'log', 'log2', 'log10'. (Default is 'log')
Add a pseudo-count before taking the log. (Default is 1)
Plot gene only if the models are significant based on
scMaSigPro::sc.filter()
. (Default is TRUE)
Compress the expression values per replicate (if present) per binned pseudotime point. Default is 'median'. Other option 'mean'
Whether to plot the fitted curves. (Default is TRUE)
Whether to plot the lines. (Default is FALSE)
Whether to plot the points. (Default is TRUE)
ggplot2 plot object.