Learn R Programming

twinsvm (version 0.0.2)

lift_plotly: 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)

Value

A plotly object.

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.

See Also

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

Examples

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

Run the code above in your browser using DataLab