knit_print.gg {ggtibble}R Documentation

Print a ggplot (usually within knit_print.gglist)

Description

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, units

Plot size in units ("in", "cm", "mm", or "px"). If not supplied, uses the size of current graphics device.

Value

The gg object, invisibly

See Also

Other knitters: knit_print.gglist()


[Package ggtibble version 1.0.0 Index]