Description Usage Arguments Value Examples
This operator allows you to add objects to a ggghost object in the style of @hrbrmstr.
1 2 | ## S3 method for class 'gg'
e1 + e2
|
e1 |
An object of class |
e2 |
A component to add to |
Appends the e2
call to the ggghost
structure
1 2 3 4 5 6 7 8 9 | #' ## create a ggghost object
tmpdata <- data.frame(x = 1:100, y = rnorm(100))
z %g<% ggplot(tmpdata, aes(x,y))
z <- z + geom_point(col = "steelblue")
z <- z + theme_bw()
z <- z + labs(title = "My cool ggplot")
z <- z + labs(x = "x axis", y = "y axis")
z <- z + geom_smooth()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.