plotResiduals {mlr} | R Documentation |
Create residual plots for prediction objects or benchmark results.
Description
Plots for model diagnostics. Provides scatterplots of true vs. predicted values and histograms of the model's residuals.
Usage
plotResiduals(
obj,
type = "scatterplot",
loess.smooth = TRUE,
rug = TRUE,
pretty.names = TRUE
)
Arguments
obj |
(Prediction | BenchmarkResult) |
type |
Type of plot. Can be “scatterplot”, the default. Or “hist”, for a histogram, or in case of classification problems a barplot, displaying the residuals. |
loess.smooth |
( |
rug |
( |
pretty.names |
( |
Value
ggplot2 plot object.
See Also
Other plot:
createSpatialResamplingPlots()
,
plotBMRBoxplots()
,
plotBMRRanksAsBarChart()
,
plotBMRSummary()
,
plotCalibration()
,
plotCritDifferences()
,
plotLearningCurve()
,
plotPartialDependence()
,
plotROCCurves()
,
plotThreshVsPerf()