Print a ggplot (usually within knit_print.gglist)
Usage
# S3 method for class 'gg'
knit_print(
x,
...,
fig_prefix,
fig_suffix,
filename = NULL,
width = 6,
height = 4,
units = "in"
)Arguments
- x
The gg object (i.e. a ggplot)
- ...
Ignored
- fig_prefix
Text to
cat()before the figure is printed- fig_suffix
Any text to add after the figure
- filename
A filename saving the plot
- width, height
Plot size in units expressed by the
unitsargument. If not supplied, uses the size of the current graphics device.- units
One of the following units in which the
widthandheightarguments are expressed:"in","cm","mm"or"px".
See also
Other knitters:
knit_print.gglist()