plotResult | R Documentation |
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") )
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 |
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.