summary.ggghost | R Documentation |
Summarises a ggghost object by presenting the contained calls in the order they were added. Optionally concatenates these into a single ggplot call.
## S3 method for class 'ggghost'
summary(object, ...)
object |
A ggghost object to present |
... |
Mainly provided for |
The data is also included in ggghost objects. If this is also
desired in the output, use str
. See example.
Either a list of ggplot calls or a string of such concatenated with " + "
## present the ggghost object as a list
tmpdata <- data.frame(x = 1:100, y = rnorm(100))
z %g<% ggplot(tmpdata, aes(x,y))
z <- z + geom_point(col = "steelblue")
summary(z)
## present the ggghost object as a string
summary(z, combine = TRUE) # Note, value of 'combine' is arbitrary
## to inspect the data structure also captured, use str()
str(z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.