summary.ggghost {ggghost} | R Documentation |
List the calls contained in a ggghost object
Description
Summarises a ggghost object by presenting the contained calls in the order they were added. Optionally concatenates these into a single ggplot call.
Usage
## S3 method for class 'ggghost'
summary(object, ...)
Arguments
object |
A ggghost object to present |
... |
Mainly provided for |
Details
The data is also included in ggghost objects. If this is also
desired in the output, use str
. See example.
Value
Either a list of ggplot calls or a string of such concatenated with " + "
Examples
## 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)
[Package ggghost version 0.2.1 Index]