as.ggplot: as.ggplot

View source: R/as-ggplot.R

as.ggplotR Documentation

as.ggplot

Description

convert plot to ggplot object

Usage

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(s)

Guangchuang Yu

Examples

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

ggplotify documentation built on Aug. 10, 2023, 1:06 a.m.