Perform the following steps to generate two different classification examples with different costs:
- Subset the iris dataset with columns named as Sepal.Length, Sepal.Width, Species, with species in setosa and virginica:
> iris.subset = subset(iris, select=c("Sepal.Length", "Sepal.Width", "Species"), Species %in% c("setosa","virginica"))
- Then, you can generate a scatter plot with Sepal.Length as the x-axis and the Sepal.Width as the y-axis:
> plot(x=iris.subset$Sepal.Length,y=iris.subset$Sepal.Width, col=iris.subset$Species, pch=19)
- Next, you can ...