Learn R Programming

rock (version 0.9.6)

quest: Qualitative/Unified Exploration of State Transitions

Description

Qualitative/Unified Exploration of State Transitions

Usage

quest(
  x,
  rawClassIdentifierCol = "state_raw",
  labelFun = base::round,
  labelFunArgs = list(digits = 2)
)

Value

A DiagrammeR::grViz() object, which will print to show the QUEST graph.

Arguments

x

A parsed source document as provided by parse_source().

rawClassIdentifierCol

The identifier of the column in x's QDT with the raw class codings of the class that has the states to look at.

labelFun

A function to apply to the edge labels in preprocessing.

labelFunArgs

Arguments to specify to labelFun in addition to the first argument (the edge weight, a number).

Examples

Run this code
### Get path to example source
examplePath <-
  system.file("extdata", package="rock");

### Get a path to one example file
exampleFile <-
  file.path(examplePath, "state-example-1.rock");

### Parse single example source
parsedExample <- rock::parse_source(exampleFile);

### Show a QUEST graph
rock::quest(
  parsedExample
);

Run the code above in your browser using DataLab