ggplotify (version 0.1.2)

as.grob: as.grob

Description

convert a plot to grob object

Usage

as.grob(plot, ...)

# S3 method for aplot as.grob(plot, ...)

# S3 method for oncoplot as.grob(plot, ...)

# S3 method for bbplot as.grob(plot, ...)

# S3 method for patchwork as.grob(plot, ...)

# S3 method for gglist as.grob(plot, ...)

# S3 method for expression as.grob(plot, ...)

# S3 method for formula as.grob(plot, ...)

# S3 method for `function` as.grob(plot, ...)

# S3 method for ggplot as.grob(plot, ...)

# S3 method for meme as.grob(plot, ...)

# S3 method for trellis as.grob(plot, ...)

# S3 method for eulergram as.grob(plot, ...)

# S3 method for Heatmap as.grob(plot, ...)

# S3 method for upset as.grob(plot, ...)

# S3 method for pheatmap as.grob(plot, ...)

# S3 method for grob as.grob(plot, ...)

Value

grob object

Arguments

plot

base or grid plot, or graphic object generated by ggplot, lattice, etc.

...

additional parameter, mostly will be ignored.

Author

Guangchuang Yu

Examples

Run this code
as.grob(~barplot(1:10))

Run the code above in your browser using DataLab