View source: R/utilities-background.R
setBackgroundPanelArea | R Documentation |
Set background panel area properties of a ggplot
object
setBackgroundPanelArea(
plotObject,
fill = NULL,
color = NULL,
linetype = NULL,
size = NULL
)
plotObject |
A |
fill |
Optional character values defining the color of the background.
See |
color |
Optional character values defining the color of the background frame.
See |
linetype |
Optional character values defining the linetype of the background frame.
See enum |
size |
Optional numeric values defining the size of the background frame. |
A ggplot
object
# Set background of a scatter plot
p <- addScatter(x = c(1, 2, 1, 2, 3), y = c(5, 0, 2, 3, 4))
setBackgroundPanelArea(p, fill = "yellowgreen", color = "red", linetype = "dotted")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.