| gg_var | R Documentation |
gg_var() extracts the name of the variable used as the "x" or "y"
axis in a ggplot object.
gg_var(gg_obj, axis = c("x", "y"))
gg_obj |
A |
axis |
The axis variable to extract |
A character vector of length 1 containing the variable name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.