| lift_plot | R Documentation |
Maps two-dimensional data to a third RBF height and draws a static oblique
projection. The height is exp(-gamma * ||x - center||^2), so points near
the center rise while points farther away stay low. A translucent plane is
drawn halfway between the two class mean heights.
lift_plot(x, y, gamma = 1, center = NULL)
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 |
A ggplot object.
Other visualization:
compare_methods(),
kernel_lift(),
lift_plotly()
set.seed(20)
dat <- gen_circles(80, noise = 0.04)
lift_plot(dat$x, dat$y, gamma = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.