dot-get_aesthetics: Get Aesthetics From a Layer

.get_aestheticsR Documentation

Get Aesthetics From a Layer

Description

Get Aesthetics From a Layer

Usage

.get_aesthetics(plot, layer, split = TRUE)

Arguments

plot

A ggplot object

layer

A ggplot layer

split

Split the resulting vector into a list based on whether or not the value is present in the layer data or the plot data

Value

A character vector of all aesthetics defined for the layer

Examples

data("pbmc_small")
p <- ggplot(pbmc_small, mapping = aes(color = ident)) +
  geom_point(aes(x = tSNE_1, y = tSNE_2))
p

.get_aesthetics(p, p$layers[[1L]])


mojaveazure/ggseurat documentation built on Dec. 10, 2024, 12:05 a.m.