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:

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 'no_strata' will plot accuracies not considering strata. If 'avg_strata' will average single strata accuracies. If 'single' each strata will be represented separately.

Value

a ggplot2 object


[Package GROAN version 1.3.1 Index]