print1: Print a plot or gtable object to the current device

View source: R/ggwrite.R

print1R Documentation

Print a plot or gtable object to the current device

Description

Internal helper that dispatches to the correct printing mechanism depending on the class of plot. gtable objects (e.g. from grid.arrange) must be drawn with grid.draw, while other objects (e.g. ggplot) use the standard print method. NULL input is silently ignored.

Usage

print1(plot)

Arguments

plot

A plot object (ggplot, gtable, or similar), or NULL.

Value

NULL, invisibly. Called for the side effect of drawing to the current device.


tracee documentation built on Nov. 24, 2026, 5:07 p.m.