SafetyGraphics / safetyGraphics

Clinical Trial Safety Graphics with R
https://safetygraphics.github.io/safetyGraphics/
Other
96 stars 24 forks source link

Update Vignettes to use `.data[[]]` #638

Closed jwildfire closed 2 years ago

jwildfire commented 2 years ago

Consider moving from:

plot_aes <- aes_(
   x=as.name(settings$studyday_col), 
   y=as.name(settings$value_col), 
   group=as.name(settings$id_col)
)

To:

plot_aes <- aes(
   x=.data[[settings$studyday_col]] 
   y=.data[[settings$value_col]] 
   group=.data[[settings$id_col]]
)

Also add a section discussing standard evaluation and providing some references like:

jwildfire commented 2 years ago

cc: @xni7

jwildfire commented 2 years ago

Made updates in cookbook and chart config repos.