Description Usage Arguments Value Examples

View source: R/prepapre_correlation_graph.R

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

.

1 |

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

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

1 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.