Generate a ggplot
plot for
Assay
objects
# S3 method for Assay
autoplot(
object,
data = missing_arg(),
features = NULL,
layer = c("data", "scale.data", "counts"),
na.rm = TRUE,
show.legend = NA,
...
)
An Assay
object
A data.frame
(eg. from
FetchData
) with extra data for visualization
A vector of features to include in the fortified data; defaults to the variable features
Name of layer to pull expression data for
Remove values with NA
s
logical. Should this layer be included in the legends?
NA
, the default, includes if any aesthetics are mapped.
FALSE
never includes, and TRUE
always includes.
It can also be a named logical vector to finely select the aesthetics to
display.
Arguments passed to geom_violin
A ggplot
object
The following aesthetics are mapped automatically:
“x
”
“y
”
“fill
”
Visualize Assay Expression Data:
autolayer.Assay()
,
fortify.Assay()
data("pbmc_small")
rna <- pbmc_small[["RNA"]]
md <- FetchData(pbmc_small, vars = "ident")
# Generate a plot using `autoplot()`