Learn R Programming

ggseg3d (version 2.0.0)

set_background: 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")

Value

The input object (modified), for piping.

Arguments

p

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

colour

string. Background color (hex or named color)

Examples

Run this code
if (FALSE) {
ggseg3d() |> set_background("black")

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

Run the code above in your browser using DataLab