50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

scplot (version 0.5.1)

set_background: Set plot and panel background of an scplot

Description

Set plot and panel background of an scplot

Usage

set_background(object, ...)

set_panel(object, ...)

Value

An object of class scplot (seescplot()).

Arguments

object

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

...

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

Examples

Run this code
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)

Run the code above in your browser using DataLab