# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
left <- data.frame(id = 1:5, x = c(1, 2, 3, 4, 5))
right <- data.frame(id = 6:10, x = c(1.1, 2.2, 3.1, 4.2, 5.1))
result <- match_couples(left, right, vars = "x")
ggplot2::autoplot(result)
ggplot2::autoplot(result, type = "density")
}
# }
Run the code above in your browser using DataLab