lift_plotly: Interactive RBF Kernel Lift Plot

View source: R/lift.R

lift_plotlyR Documentation

Interactive RBF Kernel Lift Plot

Description

Draws the same RBF lift as lift_plot() as a rotatable plotly 3D chart. This function is optional; the package does not require plotly to build or check.

Usage

lift_plotly(x, y, gamma = 1, center = NULL)

Arguments

x

Numeric two-column matrix or data frame.

y

Two-class response.

gamma

Positive RBF scale.

center

Optional numeric length-two center for the RBF bump. If NULL, the centroid of the inner class is used.

Value

A plotly object.

See Also

Other visualization: compare_methods(), kernel_lift(), lift_plot()

Examples


set.seed(21)
dat <- gen_circles(80, noise = 0.04)
if (requireNamespace("plotly", quietly = TRUE)) {
  lift_plotly(dat$x, dat$y, gamma = 1)
}


twinsvm documentation built on June 10, 2026, 1:06 a.m.