as.ggplot | R Documentation |
convert plot to ggplot object
as.ggplot(plot, scale = 1, hjust = 0, vjust = 0, angle = 0, ...)
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 |
ggplot object
Guangchuang Yu
as.ggplot(~barplot(1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.