interpret-interaction-methods: Interaction result methods.

interpret-interaction-methodsR Documentation

Interaction result methods.

Description

These methods provide the standard print(), summary(), and plot() interfaces for funcml_interaction objects returned by interpret(method = "interaction").

Usage

## S3 method for class 'funcml_interaction'
plot(x, ...)

## S3 method for class 'funcml_interaction'
print(x, ...)

## S3 method for class 'funcml_interaction'
summary(object, ...)

Arguments

x

A funcml_interaction object.

...

Additional arguments passed to the underlying method.

object

A funcml_interaction object.

Value

plot() returns a ggplot2 object. print() returns the input object invisibly. summary() returns the interaction summary table invisibly.

Examples

fit_obj <- fit(mpg ~ wt + hp + disp, data = mtcars, model = "rpart",
  spec = list(cp = 0.01, minsplit = 5))
interaction_obj <- interpret(
  fit = fit_obj,
  data = mtcars,
  method = "interaction",
  features = c("wt", "hp"),
  nsamples = 20,
  grid_size = 5
)
print(interaction_obj)
summary(interaction_obj)
plot(interaction_obj)

funcml documentation built on Aug. 22, 2026, 5:08 p.m.