CausalImpactMethods {CausalImpact} | R Documentation |
Printing and plotting a CausalImpact
object
Description
Methods for printing and plotting the results of an
analysis results object returned by CausalImpact()
.
Usage
## S3 method for class 'CausalImpact'
summary(object, ...)
## S3 method for class 'CausalImpact'
print(x, ...)
## S3 method for class 'CausalImpact'
plot(x, ...)
Arguments
object |
A |
x |
A |
... |
Optional additional arguments. For For |
Author(s)
Kay H. Brodersen kbrodersen@google.com
Examples
## Not run:
impact <- CausalImpact(...)
# Print a summary table
print(impact)
summary(impact)
# Print a verbal analysis description
print(impact, "report")
summary(impact, "report")
# Create a plot
plot(impact)
plot(impact, "original")
plot(impact, "pointwise")
plot(impact, "cumulative")
plot(impact, c("original", "pointwise"))
# Customize a plot
impact.plot <- plot(impact)
impact.plot <- impact.plot + theme_bw(base_size = 20)
## End(Not run)