theme_canvas: Canvas Theme for ggplot2 Objects

View source: R/theme_canvas.R

theme_canvasR Documentation

Canvas Theme for ggplot2 Objects

Description

Add a canvas theme to the plot. The canvas theme by default has no margins and fills any empty canvas with a background color.

Usage

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(s)

Koen Derks, koen-derks@hotmail.com


aRtsy documentation built on Aug. 21, 2023, 9:08 a.m.