Description Usage Arguments Value Examples
This function allows you to create a correlation plot aswell as get correlational data.
1 2 |
data |
The dataset only containing the coloumns you want correlations between. |
type |
The correlation type, use either "pearson" or "spearman". |
colors |
A vector containing the colors (either names or #Codes) of the colors you want to use. The first index is equal a negative correlation, second index equals positive correlation. |
data |
Calculated correlations aswell as p-values. |
plot |
The ggplot object. |
1 | rpdp_corr_matrix(mtcars, "pearson")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.