correlation_table: Create a correlation table

Description Usage Arguments Examples

View source: R/correlation_table.R

Description

Function to create a correlation table.

Usage

1
2
correlation_table(correlations, triangle = "lower", p_values = NULL,
  diagonal = NULL, labels = NULL, digits = 2)

Arguments

correlations

A data frame or matrix containing the correlations.

triangle

A character string indicating whether the lower, upper, or both halves should be visible, must be one of 'lower', 'upper', or 'both'. You can specify just the initial letter.

p_values

A data frame or matrix containing the p-values.

diagonal

A vector of values to be placed on the diagonal. Default is a vector of 1s.

labels

A vector of strings containing the labels for each variable.

digits

An integer indicating the number of decimal places.

Examples

1
# Add examples

WillemSleegers/tidystats-v0.3 documentation built on Aug. 12, 2019, 5:31 p.m.