convert plot to ggplot object

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

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

Value

ggplot object

Author

Guangchuang Yu

Examples

as.ggplot(~barplot(1:10))