scale_colour_ssd {ssdtools}R Documentation

Discrete color-blind scale for SSD Plots

Description

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

See Also

Other ggplot: geom_hcintersect(), geom_ssdpoint(), geom_ssdsegment(), geom_xribbon(), ssd_pal()

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))

[Package ssdtools version 2.3.0 Index]