panelID: Put a panel indicator on an R plot

Description Usage Arguments Details

View source: R/figs.R

Description

Panel indicator function.

Usage

1
2
panelID(label, location = "topleft", x = NULL, y = NULL,
  offset = c(0, 0), ...)

Arguments

label

Character string. The label you want to put on the panel.

location

Character string, similar to that of legend().

x

Numeric, the x parameter of the label.

y

Numeric, the y parameter of the label.

offset

offset from the calculated coordinates.

...

arguments passed to the text() function.

Details

The function is stolen from: https://waterprogramming.wordpress.com/2015/12/02/easy-labels-for-multi-panel-plots-in-r/ with minor modifications.


adamkocsis/restools documentation built on June 14, 2021, 3:27 a.m.