View source: R/Seurat.utils.less.used.R
multi_clUMAP.A4 | R Documentation |
Generates and saves multiple UMAP plots for clustering results, adjusting the layout and plot dimensions. Supports the generation of plots in different formats and customization of the visual appearance.
multi_clUMAP.A4(
obj = combined.obj,
idents = GetClusteringRuns(obj)[1:4],
foldername = "clUMAPs_multi",
plot.reduction = "umap",
intersectionAssay = c("RNA", "integrated")[1],
layout = c("tall", "wide", FALSE)[2],
nr.Col = 2,
nr.Row = 4,
cex = round(0.1/(nr.Col * nr.Row), digits = 2),
label = FALSE,
legend = !label,
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 |
The Seurat object containing clustering information. Default: |
idents |
A vector of cluster identities to plot. Default: |
foldername |
The name of the folder to save plots. Default: |
plot.reduction |
The dimensionality reduction technique to use for plotting. Default: "umap". |
intersectionAssay |
The assay to use for intersection. Default: "RNA". |
layout |
The layout orientation, either "tall", "wide", or |
nr.Col |
Number of columns in the plot grid. Default: 2. |
nr.Row |
Number of rows in the plot grid. Default: 4. |
cex |
The character expansion size for plot text, automatically adjusted. Default: |
label |
Logical indicating if labels should be displayed on the plots. Default: |
legend |
Logical indicating if a legend should be included in the plots. Default: |
subdir |
Logical indicating if a subdirectory should be created for saving plots. Default: |
prefix |
Optional prefix for plot filenames. Default: |
suffix |
Optional suffix for plot filenames. Default: |
background_col |
The background color of the plot. Default: "white". |
aspect.ratio |
The aspect ratio of the plot, |
saveGeneList |
Logical indicating if a list of genes should be saved. Default: |
w |
The width of the plot in inches. Default: |
h |
The height of the plot in inches. Default: |
scaling |
The scaling factor to apply to plot dimensions. Default: 1. |
format |
The file format for saving plots. Default: "jpg". |
... |
Additional arguments passed to plotting functions. |
Invisible NULL
. Plots are saved to files.
## Not run:
multi_clUMAP.A4(idents = c("S1", "S2"), obj = YourSeuratObject)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.