This function uses ggplot2 package (which must be installed) to graphically render the result of a run. The function receive as input the output of GROAN.run and returns a ggplot2 object (that can be further customized). Currently implemented types of plot are:
box
: boxplot, showing the distribution of repetitions. See geom_boxplot
bar
: barplot, showing the average over repetitions. See stat_summary
bar_conf95
: same as 'bar', but with 95% confidence intervals
plotResult(
res,
variable = c("pearson", "spearman", "rmse", "time_per_fold", "coeff_det", "mae"),
x.label = c("both", "train_only", "test_only"),
plot.type = c("box", "bar", "bar_conf95"),
strata = c("no_strata", "avg_strata", "single")
)
a ggplot2 object
a result data frame containing the output of GROAN.run
name of the variable to be used as y values
select what to put on x-axis between both train and test dataset (default), train dataset only or test dataset only
a string indicating the type of plot to be obtained
string determining behaviour toward strata. If 'no_strata'
will plot
accuracies not considering strata. If 'avg_strata'
will average single
strata accuracies. If 'single'
each strata will be represented separately.