Skip to contents

The functions were designed for coloring different groups in a plot of SSD data.

Usage

scale_colour_ssd(...)

scale_color_ssd(...)

scale_fill_ssd(...)

Arguments

...

Arguments passed to ggplot2::discrete_scale().

Functions

  • scale_color_ssd(): Discrete color-blind scale for SSD Plots

  • scale_fill_ssd(): Discrete color-blind scale for SSD Plots

See also

Examples

# Use the color-blind palette for a SSD plot
ssd_plot(ssddata::ccme_boron, boron_pred, shape = "Group", color = "Group") +
  scale_colour_ssd()

# Use the color-blind palette for a histogram of concentrations
ggplot2::ggplot(ssddata::ccme_boron, ggplot2::aes(x = Species, y = Conc, fill = Group)) +
  ggplot2::geom_col() +
  scale_fill_ssd() +
  ggplot2::theme(axis.text.x = ggplot2::element_text(angle = 90, vjust = 0.5, hjust = 1))