ggplotify (version 0.1.0)

as.ggplot: as.ggplot

Description

convert plot to ggplot object

Usage

as.ggplot(plot, scale = 1, hjust = 0, vjust = 0, angle = 0, ...)

Value

ggplot object

Arguments

plot

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

scale

scale of the plot to be drawn

hjust

horizontal adjustment

vjust

vertical adjustment

angle

angle to rotate plot

...

additional parameters passed to as.grob

Author

Guangchuang Yu

Examples

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

Run the code above in your browser using DataLab