Learn R Programming

SteppedPower (version 0.3.1)

plot.wlsPower: plot an object of class `wlsPower`

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 wlsPower
plot(
  x,
  which = NULL,
  show_colorbar = NULL,
  annotations = NULL,
  marginal_plots = TRUE,
  ...
)

Arguments

x

object of class wlsPower

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?

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