Iterate DimPlot by orig.ident column from Seurat object metadata
Iterate_DimPlot_bySample(
seurat_object,
sample_column = "orig.ident",
file_path = NULL,
file_name = NULL,
file_type = NULL,
single_pdf = FALSE,
output_width = NULL,
output_height = NULL,
dpi = 600,
color = "black",
no_legend = TRUE,
title_prefix = NULL,
reduction = NULL,
dims = c(1, 2),
pt.size = NULL,
raster = NULL,
...
)
Seurat object name.
name of meta.data column containing sample names/ids (default is "orig.ident").
directory file path and/or file name prefix. Defaults to current wd.
name suffix to append after sample name.
File type to save output as. Must be one of following: ".pdf", ".png", ".tiff", ".jpeg", or ".svg".
saves all plots to single PDF file (default = FALSE). `file_type`` must be .pdf
the width (in inches) for output page size. Default is NULL.
the height (in inches) for output page size. Default is NULL.
dpi for image saving.
color scheme to use.
logical, whether or not to include plot legend, default is TRUE.
Value that should be used for plot title prefix if no_legend = TRUE
.
If NULL the value of meta_data_column
will be used. Default is NULL.
Dimensionality Reduction to use (default is object default).
Dimensions to plot.
Adjust point size for plotting.
Convert points to raster format. Default is NULL which will rasterize by default if greater than 200,000 cells.
Extra parameters passed to DimPlot
.
A ggplot object
if (FALSE) {
Iterate_DimPlot_bySample(seurat_object = object, file_path = "plots/", file_name = "tsne",
file_type = ".jpg", dpi = 600, color = "black")
}