| theme_mnirs | R Documentation |
A [ggplot2][ggplot2::ggplot2-package] theme for display.
theme_mnirs(
base_size = 14,
base_family = "sans",
border = c("partial", "full"),
ink = "black",
paper = "white",
accent = "#0080ff",
...
)
base_size |
Base font size, given in pts. |
base_family |
Base font family. |
border |
Define either a partial or full border around plots. |
ink |
Colour for text and lines. Default is "black". |
paper |
Background colour. Default is "white". |
accent |
Accent colour for highlights. Default is "#0080ff". |
... |
Additional arguments to add to |
axis.title = element_text(face = "bold") by default Modify to "plain".
panel.grid.major & panel.grid.major set to blank. Modify to
= element_line() for visible grid lines.
legend.position = "top" by default Modify "none" to remove legend
entirely.
border = "partial" uses panel.border = element_blank() and
axis.line = element_line().
border = "full" uses panel.border = element_rect(colour = "black",
linewidth = 1) and axis.line = element_line().
base_family = "sans" by default.
A ggplot2 theme object.
palette_mnirs(), scale_colour_mnirs()
## plot example 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
) |>
plot(time_labels = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.