pattern.multisimsum: pattern method for multisimsum objects

Description Usage Arguments Details Value Examples

View source: R/pattern.multisimsum.R

Description

pattern() method for objects of class multisimsum.

Usage

1
2
## S3 method for class 'multisimsum'
pattern(obj, par = NULL, gpars = list(), ...)

Arguments

obj

An object of class multisimsum.

par

Estimand to plot.

gpars

Graphical parameters. Must be a named list, with possible parameters:

  • alpha, alpha value of each point on the scatterplot;

  • scales, scale of x and y axis of each facet. It is possible to redefine all the graphical parameters or a subset only; if not specified, sensible default values will be utilised. Good practice would be adding a colorblind-safe palette, e.g. using ggthemes::scale_color_colorblind().

...

Ignored.

Details

If par = NULL (the default), all estimands are plotted and included as faceting variables.

Value

A ggplot2::ggplot() object that can be combined with additional geom_*, scale_*, theme_*, etc.

Examples

1
2
3
4
5
6
7
8
library(rsimsum)
library(ggplot2)
data("frailty", package = "rsimsum")
ms <- multisimsum(data = frailty, par = "par", true = c(trt = -0.50, fv = 0.75),
                    estvarname = "b", se = "se", methodvar = "model",
                    by = "fv_dist", x = TRUE)
pattern(ms)
pattern(ms, par = "trt")

rsimsum documentation built on June 21, 2018, 5:04 p.m.