Learn R Programming

ggsci (version 4.0.0)

scale_color_frontiers: Frontiers journal color scales

Description

See pal_frontiers() for details.

Usage

scale_color_frontiers(palette = c("default"), alpha = 1, ...)

scale_colour_frontiers(palette = c("default"), alpha = 1, ...)

scale_fill_frontiers(palette = c("default"), alpha = 1, ...)

Arguments

palette

Palette type. Currently there is one available option: "default" (10-color palette).

alpha

Transparency level, a real number in (0, 1]. See alpha in grDevices::rgb() for details.

...

Additional parameters for ggplot2::discrete_scale().

Author

Clara Jégousse | cat3@hi.is

Examples

Run this code
example_scatterplot() +
  ggplot2::theme_dark() +
  ggplot2::theme(
    panel.background = ggplot2::element_rect(fill = "#2D2D2D"),
    legend.key = ggplot2::element_rect(fill = "#2D2D2D")
  ) +
  scale_color_frontiers()

example_barplot() +
  ggplot2::theme_dark() +
  ggplot2::theme(
    panel.background = ggplot2::element_rect(fill = "#2D2D2D")
  ) +
  scale_fill_frontiers()

Run the code above in your browser using DataLab