new_theme.Rdnew_theme() creates a new theme object for use with scplot.
extract_theme() extracts the theme from an existing scplot object, allowing
users to reuse or modify the theme for other scplot visualizations.
new_theme()
extract_theme(object)An scplot object (class scplot) returned from the scplot()
function.
An object of class scplot-theme which can be used with the
set_theme() function.
Themes control the overall appearance of scplot visualizations, including colors, fonts, line styles, and layout options. By creating a custom theme, users can ensure consistent styling across multiple plots and tailor the visualizations to their specific needs or branding requirements.
data(exampleABC, package = "scan")
my_theme <- new_theme() |>
set_panel(color = "red") |>
set_base_text(size = 12, color = "blue") |>
set_dataline(color = "darkred", linewidth = 2)
p1 <- scplot(exampleABC) |> set_theme(my_theme)