| get_labs | R Documentation |
Extract custom labels from ggplot object
get_labs(g, ggbuild = NULL)
g |
ggplot object |
ggbuild |
already built ggplot_built object if available |
named vector of labels
a <- ggplot2::ggplot(ggplot2::mpg, ggplot2::aes(displ, hwy)) +
ggplot2::geom_point(ggplot2::aes(color = as.factor(cyl))) +
ggplot2::geom_text(ggplot2::aes(label = model))
get_labs(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.