Description Usage Arguments Value Examples
Visualize the correlation matrix
1 2 3 4 5 6 7 8 | visualize_correlations(
df,
color_value_positive = "#08306B",
color_value_negative = "#8b0000",
color_text = "#FFFFFF",
include_missings = FALSE,
...
)
|
df |
data.frame containing columns for x and y |
color_value_positive |
color used for upper limit of gradient (high positive correlation) |
color_value_negative |
color used for lower limit of gradient (high negative correlation) |
color_text |
color used for text, best to pick high contrast with |
include_missings |
bool, whether to include the variables without correlation values in the plot |
... |
arguments to pass to |
a ggplot object, a heatmap visualization
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.