Plot_Pseudotime_V_Gene | R Documentation |
This function creates a scatter plot of a Seurat object, with smoothed lines for each selected feature. The x-axis is defined by the selected SerObjrtByName parameter, and the y-axis is defined by the values of the selected features added to the data frame. The function uses ggplot2 for visualization.
Plot_Pseudotime_V_Gene(
SerObj,
SerObjrtByName,
Feats = NULL,
base_size = 20,
col_vector = col_vector,
showScatter = T,
dowsampleScatter = T,
scatterAlpha = 0.5
)
SerObj |
A Seurat object to plot. |
SerObjrtByName |
The name of the variable to use for SerObjrting cells on the x-axis. |
Feats |
A vector of feature names to plot on the y-axis. Default is NULL, which will plot all features in the object. |
base_size |
Base size of points and lines. Default is 20. |
col_vector |
color vector |
showScatter |
boolean default T to show scatter points |
dowsampleScatter |
boolean default T to downsample the scatter points |
scatterAlpha |
alpha value default 0.5 to show scatter points |
A ggplot object.
Plot_Pseudotime_V_Gene(SerObj, "nCount_RNA", c("TNFRSF4", "CD69"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.