convert plot to ggplot object
as.ggplot(plot)
plot
base or grid plot, or graphic generated by ggplot, lattice, etc.
ggplot object
Guangchuang Yu
as.ggplot(~barplot(1:10))