Learn R Programming

StratifiedMedicine (version 0.1.3)

plot.PRISM: plot.PRISM

Description

Plots PRISM results, either forest plot (estimate with CIs) or resampling distribution.

Usage

# S3 method for PRISM
plot(x, type = "forest", estimand = NULL,
  grid.data = NULL, grid.thres = ">0", ...)

Arguments

x

PRISM object

type

Type of plot (default="forest", forest plot for overall and subgroups). Other options include "PLE:waterfall" (waterfall plot of PLEs), "PLE:density" (density plot of PLEs), "resample" (resampling distribution of parameter estimates for overall and subgroups), and "heatmap" (heatmap of ple estimates/probabilities).

estimand

For "resample" plot only, must be specify which estimand to visualize. Default=NULL.

grid.data

Input grid of values for 2-3 covariates (if 3, last variable cannot be continuous). This is required for type="heatmap". Default=NULL.

grid.thres

Threshold for PLE, ex: I(PLE>thres). Used to estimate P(PLE>thres) for type="heatmap". Default is ">0". Direction can be reversed and can include equality sign (ex: "<=").

...

Additional arguments (currently ignored).

Value

Plot (ggplot2) object

See Also

PRISM