Print a ggplot object with space around it
knit_print.gg.RdPrint a ggplot object with space around it
Usage
# S3 method for gg
knit_print(
x,
...,
fig_prefix,
fig_suffix,
filename = NULL,
width = 6,
height = 4,
units = "in"
)Arguments
- x
The plot object
- ...
Passed to
print.- fig_prefix
See
fig_suffix- fig_suffix
Character strings passed to
catbefore and after printingx(if not missing).- filename
Save the figure to the filename, if provided
- width, height, units
passed to
ggplot2::ggsave()