View source: R/supervised-svm.R
| tl_plot_svm_boundary | R Documentation |
Plot SVM decision boundary
tl_plot_svm_boundary(model, x_var = NULL, y_var = NULL, grid_size = 100, ...)
model |
A tidylearn SVM model object |
x_var |
Name of the x-axis variable |
y_var |
Name of the y-axis variable |
grid_size |
Number of points in each dimension for the grid (default: 100) |
... |
Additional arguments |
A ggplot object with decision boundary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.