R: Set ggplot Panel Border Line

border {ggpubr} | R Documentation

## Set ggplot Panel Border Line

### Description

Change or set ggplot panel border.

### Usage

    border(color = "black", size = 0.8, linetype = NULL)

### Arguments

`color` | border line color.
`size` | numeric value specifying border line size.
`linetype` | line type. An integer (0:8), a name (blank, solid, dashed, dotted, dotdash, longdash, twodash). Sess `show_line_types`.

### Examples

    # Load data
    data("ToothGrowth")
    df <- ToothGrowth

    # Basic plot
    p <- ggboxplot(df, x = "dose", y = "len")
    p

    # Add border
    p + border()

[Package ggpubr version 0.1.6 Index]