| scale_colour_mnirs | R Documentation |
Scales for custom mnirs palette
scale_colour_mnirs(..., aesthetics = "colour")
scale_color_mnirs(..., aesthetics = "colour")
scale_fill_mnirs(..., aesthetics = "fill")
... |
Arguments passed to |
aesthetics |
A character vector with aesthetic(s) passed to
|
A ggplot2 scale object.
theme_mnirs(), palette_mnirs()
## plot example data
data <- read_mnirs(
file_path = example_mnirs("moxy_ramp"),
nirs_channels = c(smo2_left = "SmO2 Live",
smo2_right = "SmO2 Live(2)"),
time_channel = c(time = "hh:mm:ss"),
verbose = FALSE
)
ggplot2::ggplot(data, ggplot2::aes(x = time)) +
theme_mnirs() +
scale_colour_mnirs(name = NULL) +
ggplot2::geom_line(ggplot2::aes(y = smo2_left, colour = "smo2_left")) +
ggplot2::geom_line(ggplot2::aes(y = smo2_right, colour = "smo2_right"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.