prepare_correlation_graph: Prepares a Correlation Graph

Description Usage Arguments Value Examples

View source: R/prepapre_correlation_graph.R

Description

Reads a data frame and presents Pearson correlations above and Spearman correlations the diagonal using a fancy graph prepared by the package corrplot.

Usage

1

Arguments

df

Data frame containing at least two variables that are either numeric or logical and at least five observations.

Value

The function directly renders the graph as produced by corrplot. In addition, it returns a list containing three items:

"df_corr"

A data frame containing the correlations

"df_prob"

A data frame containing the p-values of the correlations

"df_n"

A data frame containing the number of observations used for the correlations

Examples

1

joachim-gassen/ExPanDaR documentation built on April 15, 2021, 6:07 p.m.