add_discrete_palette | R Documentation |
add_discrete_palette() is an Add function that updates an object by adding new values to new or empty fields. Specifically, this function implements an algorithm to add discrete palette. The function returns Plot (a plot).
add_discrete_palette(
plot_plt,
colours_chr = c("#de2d26", "#fc9272"),
missing_1L_chr = "grey50",
type_1L_chr = c("ggsci", "manual", "viridis"),
what_1L_chr = "lancet"
)
plot_plt |
Plot (a plot) |
colours_chr |
Colours (a character vector), Default: c("#de2d26", "#fc9272") |
missing_1L_chr |
Missing (a character vector of length one), Default: 'grey50' |
type_1L_chr |
Type (a character vector of length one), Default: c("ggsci", "manual", "viridis") |
what_1L_chr |
What (a character vector of length one), Default: 'lancet' |
Plot (a plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.