Description Usage Arguments Author(s) Examples
Insert a plot to another plot using ggplot2
1 |
mother.plot |
The plot which to be inserted |
son.plot |
The plot to be inserted into other plot |
xmin |
the position of the son.plot |
xmax |
the position of the son.plot |
ymin |
the position of the son.plot |
ymax |
the position of the son.plot |
venn |
boolean value |
Zhonghui Gai
1 2 3 4 | p1 <- ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width)) +
geom_point() + theme_transparent()
p2 <- ggvennplot(data = data[data$group != "3W", ], col = c("red", "blue", "orange"))
son.plot(p2, p1, xmin = 0, xmax = 1, ymin = 0, ymax = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.