amices / ggmice

Visualize incomplete and imputed data with the R package `ggmice`
http://amices.org/ggmice
GNU General Public License v3.0
31 stars 9 forks source link

Adjust the variable parsing for `vrb` argument #157

Closed kylelang closed 3 months ago

kylelang commented 3 months ago

This PR tweaks the way the vrb argument is parsed for plot_trace(). In particular, it makes the function work when an external object is supplied as the function argument. In such cases, the object name will need to be unquoted using !!. I've attempted to align the implementation with standard Tidy Evaluation principles. Hence, requiring the !!-based unquoting rather than adjusting plot_trace() to gobble up all sensible inputs.

The documentation and unit tests should reflect the relevant changes.

This PR should fix #145.

hanneoberman commented 3 months ago

Not merging this yet, because the proposed solution should first work in all ggmice::plot_* functions.