plot.openEBGM: Plot an openEBGM object

View source: R/f_classFunctions.R

plot.openEBGMR Documentation

Plot an openEBGM object

Description

Plot an openEBGM object

Usage

## S3 method for class 'openEBGM'
plot(x, y = NULL, event = NULL, plot.type = "bar", ...)

Arguments

x

An openEBGM object constructed by ebScores()

y

Unused parameter to satisfy generic function requirement

event

An (optional) specification of an event to subset the data by.

plot.type

A character vector specifying which type of plot should be output. See details.

...

Arguments to be passed to methods

Details

There are three different types of plots that the plot function may produce when called on an openEBGM object. These are

  • bar

  • shrinkage

  • histogram

A bar chart displays the top ten product-symptom EBGM scores, as well as error bars which display the highest and lowest of the quantiles chosen at the time of instantiating the openEBGM object. A shrinkage plot plots EBGM score on the y axis, and the natural log of the RR on the x axis. This plot is also called a squid plot and was conceived by Stuart Chirtel. Finally, a histogram simply displays a histogram of the EBGM scores.


openEBGM documentation built on Sept. 15, 2023, 1:08 a.m.