Hi,
I was wondering if there was a way to identify what the x, y and legend titles are from within ggplot_build somewhere.
While it normally is the variable name, it can be different if a computed variable is used.
library(tidyverse)
p <- iris %>%
tibble() %>%
ggplot() +
geom_point(aes(Sepal.Width, Sepal.Length, col = Species))
ggplot_build(p)
Cheers