Skip to contents

Colour and Fill Scales for Imaging Modalities

Usage

scale_colour_modality(...)

scale_fill_modality(...)

Arguments

...

Additional arguments passed to ggplot2::scale_colour_manual() / ggplot2::scale_fill_manual().

Value

A ggplot2 scale object.

Examples

library(ggplot2)
df <- data.frame(modality = c("CT", "MRT", "CT+MRT"), n = c(5, 14, 3))
ggplot(df, aes(modality, n, fill = modality)) +
  geom_col() +
  scale_fill_modality()