A scatter plot of the input data by group and the calculated boundary of a SVM model.
Value
A
svm_plot_2d
object. This object has no output
slots.
See chart_plot
in the struct
package to plot this chart object.
Inheritance
A svm_plot_2d
object inherits the following struct
classes: [svm_plot_2d]
>> [chart]
>> [struct_class]
References
Meyer D, Dimitriadou E, Hornik K, Weingessel A, Leisch F (2023). e1071: Misc Functions of the Department of Statistics, Probability Theory Group (Formerly: E1071), TU Wien. R package version 1.7-14, https://CRAN.R-project.org/package=e1071.
Examples
M = svm_plot_2d(
factor_name = "V1",
npoints = 100)
D = iris_DatasetExperiment()
M = filter_smeta(mode='exclude',levels='setosa',factor_name='Species') +
mean_centre()+PCA(number_components=2)+
SVM(factor_name='Species',kernel='linear')
M = model_apply(M,D)
C = svm_plot_2d(factor_name='Species')
chart_plot(C,M[4],predicted(M[3]))