Skip to contents

Network Plot of Association

Usage

npc_mixed_cor(
  cor_value,
  cor_type,
  cor_p,
  var_type,
  sig.level = 0.05,
  min_cor = 0.3,
  show_signif = FALSE,
  legend = TRUE,
  repel = TRUE,
  label_size = 5,
  overlay = TRUE
)

Arguments

cor_value

a matrix with values of association measures

cor_type

a matrix with types of association measures

cor_p

a matrix with p values of association tests

var_type

a character vector with types of variables association is measured on

sig.level

maximum significance to be visualized

min_cor

minimum association to be visualized

show_signif

whether or not to visualize significance of association

legend

if TURE, how legend

repel

if TRUE, text labels of variable names repel each other

label_size

size of text labels of variable names

overlay

if TRUE, only show significant association above min_cor threshold

Value

A network plot of association

Examples

data("mtcars")
type1 <- c(rep("numeric", 7), rep("factor", 2), rep("ordinal", 2))
test_cor1 <- pairwise_cor(mtcars, type1)
#> Error in pairwise_cor(mtcars, type1): could not find function "pairwise_cor"
npc_mixed_cor(test_cor1$cor_value, test_cor1$cor_type, test_cor1$cor_p, type1)
#> Error in npc_mixed_cor(test_cor1$cor_value, test_cor1$cor_type, test_cor1$cor_p,     type1): could not find function "npc_mixed_cor"