See pal_igv() for details.
Palette type. There are two available options:
"default" (51-color palette).
"alternating" (2-color palette).
Transparency level, a real number in (0, 1].
See alpha in grDevices::rgb() for details.
Additional parameters for ggplot2::discrete_scale().
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)
)