View source: R/Seurat.Utils.Visualization.R
multiSingleClusterHighlightPlots.A4 | R Documentation |
This function generates and saves cluster highlight plots for both single and multiple clusters using UMAP or other dimensionality reduction techniques. It supports saving plots in various formats and allows customization of plot appearance and layout.
multiSingleClusterHighlightPlots.A4(
obj = combined.obj,
ident = GetClusteringRuns(obj)[1],
foldername = ident,
plot.reduction = "umap",
intersectionAssay = DefaultAssay(combined.obj),
layout = c("tall", "wide", FALSE)[2],
colors = c("grey", "red"),
nr.Col = 2,
nr.Row = 4,
cex = round(0.1/(nr.Col * nr.Row), digits = 2),
sizes.highlight = 1,
subdir = TRUE,
prefix = NULL,
suffix = NULL,
background_col = "white",
aspect.ratio = c(FALSE, 0.6)[2],
saveGeneList = FALSE,
w = 8.27,
h = 11.69,
scaling = 1,
format = c("jpg", "pdf", "png")[1],
...
)
obj |
A Seurat object combining multiple datasets. Default: |
ident |
The name of the metadata column in the Seurat object |
foldername |
Name of the folder to save the plots in. Default: Value of |
plot.reduction |
The dimensionality reduction technique to use for the plots. Default: |
intersectionAssay |
The assay to use when calculating intersections. Default: |
layout |
Plot layout, can be |
colors |
A vector of colors to use for non-highlighted and highlighted clusters. Default: |
nr.Col |
Number of columns in the plot grid. Default: 2. |
nr.Row |
Number of rows in the plot grid. Default: 4. |
cex |
Size of the text in the plot, calculated based on the number of rows and columns. Default: Calculated value. |
sizes.highlight |
Size of highlighted cells; Default: 1. |
subdir |
Logical flag indicating whether to create a subdirectory for the plots. Default: |
prefix |
Optional prefix for the plot file names. Default: |
suffix |
Optional suffix for the plot file names. Default: |
background_col |
Background color of the plots. Default: |
aspect.ratio |
Aspect ratio of the plots, can be |
saveGeneList |
Logical flag indicating whether to save the list of genes used in the plots. Default: |
w |
Width of the plots, in inches. Default: |
h |
Height of the plots, in inches. Default: |
scaling |
Scaling factor for adjusting the size of the plots. Default: 1. |
format |
Format to save the plots in, can be |
... |
Additional arguments passed to lower-level plotting functions. |
Invisible. This function primarily saves plots to files.
multiSingleClusterHighlightPlots.A4(ident = "cluster_id", obj = yourSeuratObject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.