Skip to contents

Creates a ggplot2 color scale for consistent provider-specific coloring across visualizations. Each provider has a designated color scheme, and there's also a multiple-provider color scheme available.

Usage

providercolours(provider)

Arguments

provider

Character string specifying the provider name. Must be one of "Anglicare", "BaptistCare", "Scalabrini", or "Overview".

Value

A ggplot2 scale_colour_manual object that can be added to a ggplot

Examples

if (FALSE) { # \dontrun{
library(ggplot2)

# Single provider plot
ggplot(data, aes(x = x, y = y, color = group)) +
  geom_point() +
  providercolours("Anglicare")

# Multiple provider comparison
ggplot(data, aes(x = x, y = y, color = provider)) +
  geom_point() +
  providercolours("Overview")} # }