Description Usage Arguments Examples
View source: R/Visualization.R
A helper function used by the plot.ModelComparison. This function gathers the data needed for many types of metrics and then plots the chart.
1 2 | CreateCombinedPlot(object, pred.basic, labels,
metrics.for.plot = c("Accuracy", "Recall", "AUC", "Precision"))
|
object |
The ModelComparison object. |
pred.basic |
The predictions from the models on the testing data. |
labels |
The labels for the testing data. |
1 2 3 4 | # This function is used by plot.ModelComparison. It's usage is as follows:
# CreateCombinedPlot(object, pred.basic, labels)
# or given specific metrics for Accuracy and AUC:
# CreateCombinedPlot(object, pred.basic, labels, c("Accuracy", "AUC"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.