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,
...
)
Colour for lines and borders.
Colour for filling rectangles, polygons, ...
Alpha channel for transparency
Line type
Line width
Multiplier applied to line width
Line end style ('round', 'butt', 'square')
Line join style ('round', 'mitre', 'bevel')
Line mitre limit (number greater than 1)
The size of text (in points)
Multiplier applied to fontsize
The font family
The font face ('bold', 'italic', ...)
The height of a line as a multiple of the size of text
other arguments ignored
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.
if (FALSE) {
gp(fill = 'red')
}