decision_plot: decisionplot dimension reduction

Description Usage Arguments Details Source Examples

Description

The following plot adds the decision boundary by evaluating the classifier at evenly spaced grid points

Usage

1
2
decision_plot(model, df, class = NULL, predict_type = "class",
  resolution = 100, showgrid = TRUE, ...)

Arguments

model

model adjusted

df

dataframe with data

class

name of outcome variable

predict_type

name of outcome variable

resolution

resolution of graphic in ppi. Default is 100ppi

showgrid

Logical. Control if show or not the grid over the graphic.

...

aditional parameters

Details

details

Source

<http://michael.hahsler.net/SMU/EMIS7332/R/viz_classifier.html>

Examples

1
2
3
4
5
## Not run: 
model <- knn3(Species ~ ., data=x, k = 1)
decisionplot(model, x, class = "Species", main = "kNN (1)")

## End(Not run)

elpidiofilho/labgeo documentation built on May 14, 2019, 9:35 a.m.