print.ggplot: Explicitly draw plot ('ggtern' and 'ggplot2' compatible)

Description Usage Arguments Value

View source: R/general_functions.R

Description

Makes sure both ggtern and ggplot2 objects display correctly.

Usage

1
2
## S3 method for class 'ggplot'
print(x, newpage = is.null(vp), vp = NULL, ...)

Arguments

x

plot to display

newpage

draw new (empty) page first?

vp

viewport to draw plot in

...

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. Created in https://github.com/skgallagher/ following discussion in https://bitbucket.org/nicholasehamilton/ggtern/issues/13/ggtern-breaks-ggplots-plot


mariobecerra/opdesmixr documentation built on Aug. 13, 2021, 9:44 p.m.