Set plot and panel background of an scplot

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)