FeaturePlot_scCustom {scCustomize} | R Documentation |
Customize FeaturePlot
Description
Create Custom FeaturePlots and preserve scale (no binning)
Usage
FeaturePlot_scCustom(
seurat_object,
features,
colors_use = viridis_plasma_dark_high,
na_color = "lightgray",
order = TRUE,
pt.size = NULL,
reduction = NULL,
na_cutoff = 1e-09,
raster = NULL,
raster.dpi = c(512, 512),
split.by = NULL,
split_collect = NULL,
aspect_ratio = NULL,
figure_plot = FALSE,
num_columns = NULL,
slot = deprecated(),
layer = "data",
alpha_exp = NULL,
alpha_na_exp = NULL,
label = FALSE,
label_feature_yaxis = FALSE,
combine = TRUE,
...
)
Arguments
seurat_object |
Seurat object name. |
features |
Feature(s) to plot. |
colors_use |
list of colors or color palette to use. |
na_color |
color to use for points below lower limit. |
order |
whether to move positive cells to the top (default = TRUE). |
pt.size |
Adjust point size for plotting. |
reduction |
Dimensionality Reduction to use (if NULL then defaults to Object default). |
na_cutoff |
Value to use as minimum expression cutoff. This will be lowest value plotted use
palette provided to |
raster |
Convert points to raster format. Default is NULL which will rasterize by default if greater than 200,000 cells. |
raster.dpi |
Pixel resolution for rasterized plots, passed to geom_scattermore(). Default is c(512, 512). |
split.by |
Variable in |
split_collect |
logical, whether to collect the legends/guides when plotting with |
aspect_ratio |
Control the aspect ratio (y:x axes ratio length). Must be numeric value; Default is NULL. |
figure_plot |
logical. Whether to remove the axes and plot with legend on left of plot denoting
axes labels. (Default is FALSE). Requires |
num_columns |
Number of columns in plot layout. |
slot |
|
layer |
Which layer to pull expression data from? Default is "data". |
alpha_exp |
new alpha level to apply to expressing cell color palette ( |
alpha_na_exp |
new alpha level to apply to non-expressing cell color palette ( |
label |
logical, whether to label the clusters. Default is FALSE. |
label_feature_yaxis |
logical, whether to place feature labels on secondary y-axis as opposed to
above legend key. Default is FALSE. When setting |
combine |
Combine plots into a single |
... |
Extra parameters passed to |
Value
A ggplot object
Examples
library(Seurat)
FeaturePlot_scCustom(seurat_object = pbmc_small, features = "CD3E",
colors_use = viridis_plasma_dark_high, na_color = "lightgray")