View source: R/experimental-fun.R
geom_ggplot | R Documentation |
This function convert a ggplot object to marker, and then draw it on plot.
geom_ggplot(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
gglist = NULL,
width_unit = "cm",
height_unit = width_unit,
rasterize = FALSE,
res = 100,
...,
na.rm = FALSE,
show.legend = "collect",
inherit.aes = TRUE
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this
layer, either as a |
position |
Position adjustment, either as a string naming the adjustment
(e.g. |
gglist |
a list of ggplot object. |
width_unit, height_unit |
units of width or height. |
rasterize |
logical, whether to convert raster image before drawing. |
res |
positive numeric, used to set the resolution of raster. |
... |
Other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom_ggplot()
understands the following aesthetics (required aesthetics are in bold):
x
y
width
height
angle
hjust
vjust
Hou Yun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.