plotSeasonality: Plot the seasonality effect

View source: R/Plots.R

plotSeasonalityR Documentation

Plot the seasonality effect

Description

Plot the seasonality effect

Usage

plotSeasonality(sccsModel, rrLim = c(0.1, 10), title = NULL, fileName = NULL)

Arguments

sccsModel

An object of type sccsModel as created using the fitSccsModel function.

rrLim

The limits on the incidence rate ratio scale in the plot.

title

Optional: the main title for the plot

fileName

Name of the file where the plot should be saved, for example 'plot.png'. See the function ggsave in the ggplot2 package for supported file formats.

Details

Plot the spline curve of the seasonality effect.

Value

A Ggplot object. Use the ggsave function to save to file.


OHDSI/SelfControlledCaseSeries documentation built on Sept. 7, 2024, 8:24 a.m.