plotResult {GROAN} | R Documentation |
Plot results of a run
Description
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
Usage
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")
)
Arguments
res |
a result data frame containing the output of GROAN.run |
variable |
name of the variable to be used as y values |
x.label |
select what to put on x-axis between both train and test dataset (default), train dataset only or test dataset only |
plot.type |
a string indicating the type of plot to be obtained |
strata |
string determining behaviour toward strata. If |
Value
a ggplot2 object