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)

Arguments

x

a ggplot2 object.

background

a character specifying the color used for the empty canvas.

margin

margins of the canvas.

Value

A ggplot object containing the artwork.

Author

Koen Derks, koen-derks@hotmail.com