as.ggedit: Try to coerce a ggplot object into a ggedit object

Description Usage Arguments Value See Also Examples

View source: R/as.ggedit.R

Description

Applied to ggplot objects to use the ploting function of ggedit.

Usage

1

Arguments

plot

an object

Value

an object of class ggedit

See Also

print.ggedit, ggplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
p  <- ggplot2::ggplot(iris,ggplot2::aes(x =Sepal.Length,y=Sepal.Width))

p1 <- p + 
ggplot2::geom_point(ggplot2::aes(colour=Species)) + 
ggplot2::geom_line()

p2 <- p + 
ggplot2::geom_point() + 
ggplot2::geom_smooth(method='loess')

p3 <- list(p1,p2)

p4 <- as.ggedit(p3)

p4

ggedit documentation built on July 8, 2020, 5:34 p.m.