Learn R Programming

vbracket (version 1.1.0)

print.gg: Print method for ggplot objects with vbracket legend

Description

This overrides the default ggplot print method to add brackets automatically

Usage

# S3 method for gg
print(x, newpage = is.null(vp), vp = NULL, ...)

Value

Invisibly returns the input ggplot object (classes "gg" and "ggplot"). Called for its side effects: rendering the plot to the current graphics device with the vbracket legend overlay if present.

Arguments

x

A ggplot object

newpage

Draw on new page (default TRUE)

vp

Viewport to draw in

...

Additional arguments