Learn R Programming

ggcorrheatmap (version 0.1.2)

test_cor: Calculate correlations and p-values between columns.

Description

Calculate correlations and p-values between columns.

Usage

test_cor(
  x,
  y = NULL,
  method = "pearson",
  use = "everything",
  p_adj_method = "none"
)

Value

Data frame in long format with correlation values and nominal and adjusted p-values.

Arguments

x

Matrix or data frame with columns to correlate.

y

Matrix or data frame, if provided will be correlated with x.

method

Passed to stats::cor.

use

Passed to stats::cor.

p_adj_method

P-value adjustment method, passed to stats::p.adjust.