extract aes mapping, compatible with ggplot2 < 2.3.0 & > 2.3.0
get_aes_var(mapping, var)
mapping
aes mapping
var
variable
mapped var
Guangchuang Yu