Generate a geom_violin layer to add to
existing ggplot objects. The new plot data and aesthetics are stored
at the geom level
# S3 method for Assay
autolayer(
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 NAs
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 geom_violin layer to add to
ggplot objects
The following aesthetics are mapped automatically and overwrite said aesthetics at the plot level if set:
“x”
“y”
“fill”
ggplot2::autolayer(),
ggplot2::geom_violin()
Visualize Assay Expression Data:
autoplot.Assay(),
fortify.Assay()
data("pbmc_small")
rna <- pbmc_small[["RNA"]]
md <- FetchData(pbmc_small, vars = "ident")
# Generate a plot using `autolayer()`