The grid::gpar() does not have any named arguments, and when used in a modern IDE, it is difficult to quicklyl know which graphical parameters are available.

gp(
  col,
  fill,
  alpha,
  lty,
  lwd,
  lex,
  lineend,
  linejoin,
  linemitre,
  fontsize,
  cex,
  fontfamily,
  fontface,
  lineheight,
  ...
)

Arguments

col

Colour for lines and borders.

fill

Colour for filling rectangles, polygons, ...

alpha

Alpha channel for transparency

lty

Line type

lwd

Line width

lex

Multiplier applied to line width

lineend

Line end style ('round', 'butt', 'square')

linejoin

Line join style ('round', 'mitre', 'bevel')

linemitre

Line mitre limit (number greater than 1)

fontsize

The size of text (in points)

cex

Multiplier applied to fontsize

fontfamily

The font family

fontface

The font face ('bold', 'italic', ...)

lineheight

The height of a line as a multiple of the size of text

...

other arguments ignored

Details

This function (ingrid::gp()) is a thin wrapper around grid::gpar() which exposes all the parameters as named arguments to make autocomplete a bit more useful.

Examples

if (FALSE) {
gp(fill = 'red')
}