set_background: Set background color of ggseg3d plot

View source: R/additions.R

set_backgroundR Documentation

Set background color of ggseg3d plot

Description

Changes the background color of a ggseg3d widget or ggsegray rgl scene.

Usage

set_background(p, colour = "#ffffff")

Arguments

p

A 'ggseg3d' widget or 'ggsegray' rgl object.

colour

string. Background color (hex or named color)

Value

The input object (modified), for piping.

Examples

## Not run: 
ggseg3d() |> set_background("black")

ggsegray(atlas = dk()) |> set_background("black")

## End(Not run)

ggseg3d documentation built on Feb. 21, 2026, 1:06 a.m.