explore.baseline_contrasts: Show interactive application to explore baseline contrasts

View source: R/explore-baseline_contrasts.R

explore.baseline_contrastsR Documentation

Show interactive application to explore baseline contrasts

Description

[Experimental]

Launches an interactive Shiny application for visual exploration of baseline contrast patterns. The explorer provides tools for inspecting pattern quality, comparing measures, and interactively filtering subsets of patterns. When the original dataset is supplied, the application also allows for contextual exploration of contrasts with respect to the underlying data.

Usage

## S3 method for class 'baseline_contrasts'
explore(x, data = NULL, ...)

Arguments

x

An object of S3 class baseline_contrasts, typically created with dig_baseline_contrasts().

data

An optional data frame containing the dataset from which the contrasts were computed. Providing this enables additional contextual features in the explorer, such as examining supporting records.

...

Currently ignored.

Value

An object of class shiny.appobj representing the Shiny application. When "printed" in an interactive R session, the application is launched immediately in the default web browser.

Author(s)

Michal Burda

See Also

dig_baseline_contrasts()

Examples

## Not run: 
d <- partition(mtcars, .breaks = 2, .keep = TRUE)
res <- dig_baseline_contrasts(d,
                              condition = where(is.logical),
                              vars = where(is.numeric),
                              min_support = 0.3,
                              max_length = 2)

# launch the interactive explorer
explore(res, data = d)

## End(Not run)

nuggets documentation built on March 11, 2026, 5:06 p.m.