son.plot: Insert a plot to another plot using ggplot2

Description Usage Arguments Author(s) Examples

View source: R/son.plot.R

Description

Insert a plot to another plot using ggplot2

Usage

1
son.plot(mother.plot, son.plot, xmin, xmax, ymin, ymax, venn = FALSE)

Arguments

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

Author(s)

Zhonghui Gai

Examples

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)

ZhonghuiGai/ggvennEx documentation built on Dec. 18, 2021, 9:20 p.m.