print.ggplot_suppressed: Explicitly draw plot

Description Usage Arguments Value

View source: R/tylervigen.R

Description

The ggplot2 code necessary to make plots in Tyler Vigen's style require aggressive parameters for the splines which produce warning messages. This custom print function suppresses these messages.

Usage

1
2
## S3 method for class 'ggplot_suppressed'
print(x, ...)

Arguments

x

object of class ggplot_suppressed

...

other arguments not used by this method

Value

Invisibly returns the result of ggplot_build(), which is a list with components that contain the plot itself, the data, information about the scales, panels etc.


schuelkem/whysospurious documentation built on Jan. 22, 2020, 12:55 a.m.