.get_aesthetics | R Documentation |
Get Aesthetics From a Layer
.get_aesthetics(plot, layer, split = TRUE)
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 |
A character vector of all aesthetics defined for the layer
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]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.