bgcolor | R Documentation |
Change ggplot panel background color.
bgcolor(color)
color |
background color. |
border().
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.