Learn R Programming

ggplotify (version 0.0.3)

as.ggplot: as.ggplot

Description

convert plot to ggplot object

Usage

as.ggplot(plot, scale = 1)

Arguments

plot

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

scale

scale of the plot to be drawn

Value

ggplot object

Examples

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

Run the code above in your browser using DataLab