Description Usage Arguments Value Examples
View source: R/utility_functions.R
Generates a heatmap of the upper triangle of a correlation matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
df |
a data frame with all variables to include in the correlation matrix. |
ttl |
an optional title for the figure. |
labels |
the labels for the rows/columns. |
new |
logical; if |
lyt |
an optional matrix specifying the layout of the main panel (1) versus the side panel (2) with the color gradient. |
gradient |
the final end colors for the negative and positive correlations, respectively. |
txtSz |
the size of the text in the figure. |
mc_adjust |
the method to use when correcting for multiple comparisons (see ). |
cut_off |
cut-off for significance. |
H |
the height to use if a new plotting window is generated. |
W |
the width to use if a new plotting window is generated. |
A heatmap for the upper-triangle portion of the correlation matrix.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.