Ggplot2 drawing calls external variables

library(ggplot2)
riable = ‘A’

    #Using sym
    ggplot(df, aes(x = !! sym(variable)) + geom_histogram() #Using .data
    ggplot(df, aes(x = .data[[variable]])) + geom_histogram()

Read More: