| CausalImpactMethods | R Documentation |
CausalImpact objectMethods for printing and plotting the results of an
analysis results object returned by CausalImpact().
## S3 method for class 'CausalImpact' summary(object, ...) ## S3 method for class 'CausalImpact' print(x, ...) ## S3 method for class 'CausalImpact' plot(x, ...)
object |
A |
x |
A |
... |
Optional additional arguments. For For |
Kay H. Brodersen kbrodersen@google.com
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.