| plotFeature | R Documentation | 
Plot feature
plotFeature(object, ...)
## S4 method for signature 'SingleCellExperiment'
plotFeature(
  object,
  features,
  reduction = "UMAP",
  color = getOption(x = "acid.continuous.color", default =
    ggplot2::scale_color_gradient(low = "gray75", high = "purple")),
  pointSize = getOption(x = "acid.point.size", default = 1L),
  pointAlpha = getOption(x = "acid.point.alpha", default = 0.9),
  pointsAsNumbers = getOption(x = "acid.points.as.numbers", default = FALSE),
  label = getOption(x = "acid.label", default = FALSE),
  labelSize = getOption(x = "acid.label.size", default = 6L),
  dark = getOption(x = "acid.dark", default = FALSE),
  legend = getOption(x = "acid.legend", default = TRUE),
  expression = c("mean", "sum")
)
object | 
 Object.  | 
features | 
 
  | 
reduction | 
 
  | 
color | 
 
 To set the discrete color palette globally, use: options("acid.color.discrete" = ggplot2::scale_color_viridis_d())
 | 
pointSize | 
 
  | 
pointAlpha | 
 
  | 
pointsAsNumbers | 
 
  | 
label | 
 
  | 
labelSize | 
 
  | 
dark | 
 
  | 
legend | 
 
  | 
expression | 
 
  | 
... | 
 Additional arguments.  | 
ggplot (1 feature) or list (multiple features).
Updated 2021-03-03.
Seurat::FeaturePlot().
data(SingleCellExperiment_Seurat, package = "AcidTest")
## SingleCellExperiment ====
object <- SingleCellExperiment_Seurat
plotFeature(
    object = object,
    features = c("nCount_RNA", "nFeature_RNA", "PC_1", "PC_2"),
    reduction = "UMAP"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.