set_background: Set plot and panel background of an scplot

View source: R/background_panel.R

set_backgroundR Documentation

Set plot and panel background of an scplot

Description

Set plot and panel background of an scplot

Usage

set_background(object, ...)

set_panel(object, ...)

Arguments

object

An scplot object (class scplot) returned from the scplot() function.

...

List with rectangle parameters (⁠"fill", "colour", "linewidth", "linetype"⁠). See element_rect().

Value

An object of class scplot (seescplot()).

Examples

data(exampleAB, package = "scan")
p1 <- scplot(exampleAB)  |>
 set_background(fill = "lightblue", colour = "darkblue", linewidth = 1.5) |>
 set_panel(fill = "deepskyblue", color = "darkblue", linewidth = 0.3)

jazznbass/scplot documentation built on Feb. 8, 2025, 6:20 p.m.