vis_compare, like the other vis_* families, gives an at-a-glance ggplot of a dataset, but in this case, hones in on visualising two different dataframes of the same dimensions, and so takes two dataframes as arguments.

vis_compare(df1, df2)



The first dataframe to compare


The second dataframe to compare to the first.


ggplot2 object displaying which values in each data frame are present in each other, and which are not.

See also

vis_miss() vis_dat() vis_miss_ly() vis_compare()


# make a new dataset of iris that contains some NA values iris_diff <- iris iris_diff[1:10, 1:2] <- NA vis_compare(iris, iris_diff)
#> vis_compare is in BETA! If you have suggestions or errors #> post an issue at