(Internal) create a tidy dataframe of correlations suitable for plotting

vis_gather_cor(data, cor_method = "pearson",
  use_op = "pairwise.complete.obs")

Arguments

data

data.frame

cor_method

correlation method to use, from cor: "a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated."

use_op

what to do in the presence of missings? can be "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs" (default).

Value

tidy dataframe of correlations