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