8c01dfa9 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/svm_classifier_class.R
\name{svm_plot_2d}
\alias{svm_plot_2d}
|
d0f81a51 |
\title{SVM scatter plot}
|
8c01dfa9 |
\usage{
svm_plot_2d(factor_name, npoints = 100, ...)
}
\arguments{
|
d0f81a51 |
\item{factor_name}{(character) The name of a sample-meta column to use.}
|
079965c2 |
|
09388373 |
\item{npoints}{(numeric) The number of grid points used to plot the boundary. The default is \code{100}.\cr}
|
079965c2 |
|
d0f81a51 |
\item{...}{Additional slots and values passed to \code{struct_class}.}
|
8c01dfa9 |
}
\value{
|
5d51daa4 |
A \code{
svm_plot_2d
} object. This object has no \code{output} slots.
See \code{\link[struct]{chart_plot}} in the \code{struct} package to plot this chart object.
|
8c01dfa9 |
}
\description{
|
d0f81a51 |
A scatter plot of the input data by group and the calculated boundary of a SVM model.
}
\details{
|
09388373 |
This object makes use of functionality from the following packages:\itemize{ \item{\code{e1071}}}
|
8c01dfa9 |
}
|
09388373 |
\section{Inheritance}{
A \code{svm_plot_2d} object inherits the following \code{struct} classes: \cr\cr
|
55546c0b |
\verb{[svm_plot_2d]} >> \verb{[chart]} >> \verb{[struct_class]}
|
09388373 |
}
|
8c01dfa9 |
\examples{
|
09388373 |
M = svm_plot_2d(
factor_name = "V1",
npoints = 100)
|
8c01dfa9 |
D = iris_DatasetExperiment()
|
079965c2 |
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)
|
8c01dfa9 |
C = svm_plot_2d(factor_name='Species')
|
079965c2 |
chart_plot(C,M[4],predicted(M[3]))
|
8c01dfa9 |
}
|
d0f81a51 |
\references{
|
32654e96 |
Meyer D, Dimitriadou E, Hornik K, Weingessel A, Leisch F (2023).
|
d0f81a51 |
\emph{e1071: Misc Functions of the Department of Statistics, Probability
|
09388373 |
Theory Group (Formerly: E1071), TU Wien}. R package version 1.7-14,
|
32654e96 |
\url{https://CRAN.R-project.org/package=e1071}.
|
d0f81a51 |
}
|