View source: R/plot_cell_fraction.R
plot_cell_fraction | R Documentation |
This function is to show the cell fraction changes across groups.
plot_cell_fraction(
seu_obj,
celltypes = NULL,
groupby,
show_replicate = FALSE,
rep_colname = NULL,
strip.color = NULL
)
seu_obj |
A complete Seurat object |
celltypes |
Cell types to be included in the plot. Default: all cell types. |
groupby |
The group to show on x axis. One of the column names in meta.data. |
show_replicate |
Whether or not to show the individual replicate on the graph. If TRUE, the replicate column name needs to specify in the argument rep_colname. |
rep_colname |
The column name for biological replicates in the meta data. |
strip.color |
Colors for the strip background |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.