as.TBRPlotData: Coerces an object to a TBRPlotData object.

Description Usage Arguments Value

View source: R/as_tbrplotdata.R

Description

Coerces an object to a TBRPlotData object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as.TBRPlotData(obj, panels, periods, quantiles = c(0.1, 0.9), ...)

## S3 method for class 'TBRAnalysisFitTbr1'
as.TBRPlotData(obj,
  panels = GetTBRPlotPanelNames(), periods = c("pretest", "prediction"),
  quantiles = c(0.1, 0.9), ...)

## S3 method for class 'TBRROASAnalysisFit'
as.TBRPlotData(obj, panels = "cumulative",
  periods = "prediction", quantiles = c(0.1, 0.9), ...)

Arguments

obj

an object to coerce.

panels

(vector of strings or NULL) names of the panels to be plotted. By default, all available panels.

periods

(vector of strings or NULL) names of the periods to show. By default, all default periods.

quantiles

(real vector of length 2) lower and upper quantiles of the credible interval to show.

...

further arguments passed to the methods.

Value

A TBRPlotData object.


google/GeoexperimentsResearch documentation built on May 17, 2019, 7:42 a.m.