Description Usage Arguments Details Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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 |
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.
1 2 3 4 | ## Not run:
gp(fill = 'red')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.