plot.cc_fit: Plot results of fitting a case crossover model.

Description Usage Arguments Value

View source: R/06-casecrossover.R

Description

Plots corresponding to a case crossover model. This function computes histograms of fixed-effect posteriors and smooth curves with pointwise error bars (+- 2sd) based on the marginal posteriors of the smooth effects.

Usage

1
2
## S3 method for class 'cc_fit'
plot(x, ...)

Arguments

x

Object of class cc_fit returned by casecrossover().

...

Not used.

Value

A named list of lists of ggplots, one for the fixed effects and one for the smooth. Only mimimal annotations are made; you can put your own titles and axis labels and further change the plot features using the ggplot2 API. The plot lists themselves can be passed directly to cowplot::plot_grid, or further annotated by you.


awstringer1/casecrossover documentation built on March 11, 2021, 4:41 a.m.