set_corrplot_style | R Documentation |
Set default color pallete for qcorrplot
.
set_corrplot_style(
colours = NULL,
breaks = seq(-1, 1, length.out = 5),
labels = breaks,
limits = c(-1, 1),
scale = NULL,
...
)
set_default_style()
colours |
vector of colours to use for n-colour gradient. |
breaks |
a numeric vector of positions. |
labels |
a character vector giving labels (must be same length as breaks). |
limits |
a numeric vector of length two providing limits of the scale. |
scale |
NULL or a |
... |
other parameters passing to |
Hou Yun
## use corrplot style
set_corrplot_style()
qcorrplot(mtcars) + geom_shaping(marker = "circle")
## use custom colour palette
set_corrplot_style(colours = c("red", "white", "blue"))
qcorrplot(mtcars) + geom_shaping(marker = "circle")
## use custom scale
set_corrplot_style(scale = ggplot2::scale_fill_viridis_c(limits = c(-1, 1)))
qcorrplot(mtcars) + geom_shaping(marker = "circle")
## reset to default scale
set_default_style()
qcorrplot(mtcars) + geom_shaping(marker = "circle")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.