bgcolor: Change ggplot Panel Background Color

View source: R/bgcolor.R

bgcolorR Documentation

Change ggplot Panel Background Color

Description

Change ggplot panel background color.

Usage

bgcolor(color)

Arguments

color

background color.

See Also

border().

Examples

# Load data
data("ToothGrowth")
df <- ToothGrowth

# Basic plot
p <- ggboxplot(df, x = "dose", y = "len")
p

# Change panel background color
p +
  bgcolor("#BFD5E3")+
  border("#BFD5E3")

kassambara/ggpubr documentation built on Feb. 15, 2023, 4:09 a.m.