panel_border: Add/remove the panel border in a ggplot2 plot

View source: R/theme.R

panel_borderR Documentation

Add/remove the panel border in a ggplot2 plot

Description

This function adds or removes the panel border in ggplot2. Modified from Cowplot

Usage

panel_border(color = "grey50", size = 1, linetype = 1, remove = FALSE, colour)

Arguments

color, colour

The color of the border.

size

Size. Needs to be twice as large as desired outcome when panel clipping is on (the default).

linetype

Line type.

remove

If TRUE, removes the current panel border.


ameliabedelia/amelia documentation built on June 29, 2023, 9:07 a.m.