View source: R/prepare_scales.R
default_col_scale_corr | R Documentation |
Get a default colour scale for correlation heatmaps.
default_col_scale_corr(
aes_type,
bins = NULL,
limits = c(-1, 1),
high = "sienna2",
mid = "white",
low = "skyblue2",
midpoint = 0,
na_col = "grey50",
leg_order = 1,
title = ggplot2::waiver()
)
aes_type |
Type of aesthetic ('fill', 'col', or 'size'). |
bins |
Number of bins (for fill and colour scales). |
limits |
Scale limits (fill and colour). |
high |
Colours at higher end of fill or colour scale. |
mid |
Colours at middle point of fill or colour scale. |
low |
Colours at lower end of fill or colour scale. |
midpoint |
Middle point of colour scale. |
na_col |
Colour of NAs. |
leg_order |
Order of legend. |
title |
Title of legend. |
ggplot2 scale for correlation heatmap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.