ggplotify (version 0.0.3)

as.grob: as.grob

Description

convert a plot to grob object

Usage

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 upset as.grob(plot)

# S3 method for pheatmap as.grob(plot)

# S3 method for grob as.grob(plot)

Arguments

plot

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

Value

grob object

Examples

Run this code
# NOT RUN {
as.grob(~barplot(1:10))
# }

Run the code above in your browser using DataCamp Workspace