set the default theme
setDefaultTheme.Rdset properties of the default theme for OSPSuite plots. This function applies a custom theme based on theme_bw() with OSPSuite-specific styling.
See also
Other setDefault functions:
Shapes,
colorMaps,
geomPointUnicode(),
getDefaultGeomAttributes(),
getDefaultOptions(),
getOspsuite.plots.option(),
resetDefaultColorMapDistinct(),
resetDefaultShapeDiscrete(),
resetDefaultTheme(),
resetDefaults(),
setDefaultColorMapDistinct(),
setDefaultShapeDiscrete(),
setDefaults(),
setOspsuite.plots.option()
Examples
if (FALSE) { # \dontrun{
# Save current theme and set OSPSuite default
oldTheme <- setDefaultTheme()
# Create a plot with the new theme
p <- ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point()
print(p)
# Restore previous theme
resetDefaultTheme(oldTheme)
} # }