plot.glsPower: plot an object of class 'glsPower'

View source: R/wlsPower.R

plot.glsPowerR Documentation

plot an object of class 'glsPower'

Description

Up to four plots (selectable by 'which') that visualise: the contribution of each cluster-period cell to the treatment effect estimator, the information content of each cluster-period cell, the treatment status for each cluster for each time point and the covariance matrix. By default, only the first two plots are returned.

Usage

## S3 method for class 'glsPower'
plot(
  x,
  which = NULL,
  show_colorbar = NULL,
  annotations = NULL,
  annotation_size = NULL,
  marginal_plots = TRUE,
  ...
)

Arguments

x

object of class glsPower

which

Specify a subset of the numbers '1:4' to select plots. The default is '1:2' or '1', depending on whether 'x' contains the information content.

show_colorbar

logical, should the colorbars be shown?

annotations

logical, should the cell contributions be annotated in the Plot?

annotation_size

font size of annotation in influence plots

marginal_plots

should the influence of whole periods, clusters also be plotted?

...

Arguments to be passed to methods

Value

a list of plotly html widgets


SteppedPower documentation built on Sept. 13, 2023, 1:07 a.m.