Learn R Programming

optimall (version 1.2.0)

multiwave_diagram: Print Summary Diagram of Multiwave Object

Description

Takes a multiwave object as input and plots a diagram of its structure in the plotting window using grViz() from the DiagrammeR package. Red boxes indicate slots that have not yet been filled, blue boxes indicate that the slot is filled.

Usage

multiwave_diagram(x, height = NULL, width = NULL)

Value

Returns an object of class htmlwidget

displaying the structure of the x.

Arguments

x

An object of class multiwave.

height

The height in pixels of the diagram. Defaults to NULL , which produces default height.

width

The width in pixels of the diagram. Defaults to NULL, which produces the default width.

Examples

Run this code
MySurvey <- multiwave(phases = 2, waves = c(1, 3))
multiwave_diagram(MySurvey)

Run the code above in your browser using DataLab