Add a canvas theme to the plot. The canvas theme by default has no margins and fills any empty canvas with a background color.
theme_canvas(x, background = NULL, margin = 0)
a ggplot2 object.
a character specifying the color used for the empty canvas.
margins of the canvas.
A ggplot
object containing the artwork.