See pal_igv()
for details.
Arguments
- palette
Palette type. There are two available options:
"default"
(51-color palette)."alternating"
(2-color palette).
- alpha
Transparency level, a real number in (0, 1]. See
alpha
ingrDevices::rgb()
for details.- ...
Additional parameters for
ggplot2::discrete_scale()
.
Author
Nan Xiao | me@nanx.me | https://nanx.me
Examples
p1 <- example_scatterplot()
p2 <- example_barplot()
p1 + scale_color_igv()
#> `geom_smooth()` using formula = 'y ~ x'
p2 + scale_fill_igv()
p1 + ggplot2::scale_colour_manual(
values = rep(pal_igv("alternating")(2), times = 3)
)
#> `geom_smooth()` using formula = 'y ~ x'
p2 + ggplot2::scale_fill_manual(
values = rep(pal_igv("alternating")(2), times = 3)
)