Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikerhardt/6627d821810d63331e0c07a4defc5ff1 to your computer and use it in GitHub Desktop.
Save erikerhardt/6627d821810d63331e0c07a4defc5ff1 to your computer and use it in GitHub Desktop.
https://cran.r-project.org/web/packages/dplyr/vignettes/programming.html
# let var_xs and var_name_y be character strings with variable names, then:
geom_point(
data = dat_cont
, aes(x = !!rlang::sym(var_xs), y = !!rlang::sym(var_name_y))
, alpha = geom_point_alpha
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment