Description Usage Arguments Value Examples
View source: R/plot_functions.R
Plot statistics for suggestion of tweaked instances (population)
1 2 3 |
x |
an object returned by tweak(). |
... |
Other arguments passed on to methods. Not currently used. |
type |
what type of plot should be drawn. Possible types are
|
.invisible |
a logical. If |
a list of
"stats" a data.frame of statistics for each feature.
"plot" a ggplot object (for replot).
Default is "absoluteSum".
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
X <- iris[, 1:(ncol(iris)-1)]
scaled.X <- scale(X)
true.y <- iris[, ncol(iris)]
rf.iris <- randomForest(scaled.X, true.y, ntree=30)
es.rf <- set.eSatisfactory(forest.rf, ntree = 30, epsiron = 0.3, resample = TRUE)
tweaked <- tweak(es.rf, newdata= scaled.X, label.from = "spam", label.to = "nonspam",
.dopar = TRUE)
plot(tweaked)
plot(tweaked, type="a")
plot(tweaked, type="d")
plot(tweaked, type="f")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.