Create diagnostic plots from a ValidateMerge() result object. This function
visualizes key merge-audit outputs, including validation check status, key
coverage, join-variable auditing, duplicate-variable agreement, and
duplicate-variable conflict counts. Use this after running ValidateMerge()
to quickly inspect whether a merged dataset appears trustworthy.
Usage
PlotMergeValidation(
MergeObj,
Plot = c("All", "Checks", "Coverage", "JoinAudit", "Agreement", "Conflicts"),
Interactive = TRUE
)Arguments
- MergeObj
A list returned by
ValidateMerge().- Plot
Character value specifying which plot to return. Options are
"All","Checks","Coverage","JoinAudit","Agreement", and"Conflicts". Default is"All".- Interactive
Logical; if
TRUE, plots are converted to interactiveplotlyobjects usingplotly::ggplotly(). Default isTRUE.
Value
If Plot = "All", a named list of plots. Otherwise, a single plot
object. Plot objects are either ggplot objects or plotly htmlwidgets,
depending on Interactive.
Details
The function expects the object returned by ValidateMerge(). It does not
re-run any merge validation checks.
