Learn R Programming

mlr (version 2.6)

plotRankMatrixAsBar: Plot a rank-matrix as a barplot.

Description

Plots a barchart from the ranks of algorithms. Alternatively tiles can be plotted for every rank-task combination, see pos for details. The x-axis accross all plots is the ranks of a learner.id. Areas are always coloured corresponding to the learner.

Usage

plotRankMatrixAsBar(obj, pos = NULL)

Arguments

Value

ggplot2 plot object.

See Also

Other benchmark: BenchmarkResult, benchmark, convertBMRToRankMatrix, friedmanPostHocTestBMR, friedmanTestBMR, generateBenchmarkSummaryData, generateCritDifferencesData, generateRankMatrixAsBarData, getBMRAggrPerformances, getBMRFeatSelResults, getBMRFilteredFeatures, getBMRLearnerIds, getBMRLearners, getBMRMeasureIds, getBMRMeasures, getBMRPerformances, getBMRPredictions, getBMRTaskIds, getBMRTuneResults, plotBenchmarkResult, plotBenchmarkSummary, plotCritDifferences

Other plot: plotBenchmarkResult, plotBenchmarkSummary, plotCalibration, plotCritDifferences, plotFilterValuesGGVIS, plotFilterValues, plotLearningCurveGGVIS, plotLearningCurve, plotPartialPredictionGGVIS, plotPartialPrediction, plotROCCurves, plotROCRCurvesGGVIS, plotROCRCurves, plotThreshVsPerfGGVIS, plotThreshVsPerf

Examples

Run this code
lrns = list(makeLearner("classif.nnet"), makeLearner("classif.rpart"))
tasks = list(iris.task, sonar.task)
rdesc = makeResampleDesc("CV", iters = 2L)
meas = list(acc, mmce)
res = benchmark(lrns, tasks, rdesc, meas)
r = generateRankMatrixAsBarData(res)
plotRankMatrixAsBar(r, "tile")

Run the code above in your browser using DataLab