boxplot.benchmark {benchr} | R Documentation |
benchmark
timingsDisplays measurement results as box plots, with R expressions on X axis and execution time on Y axis.
## S3 method for class 'benchmark' boxplot(x, units = "auto", log = TRUE, xlab, ylab, horizontal = FALSE, violin = FALSE, ...)
x |
An object of class |
units |
Character. The units to be used in printing the timings.
The available units are nanoseconds ( |
log |
Logical. Should times be plotted on log scale? |
xlab |
Character. X axis label. |
ylab |
Character. Y axis label. |
horizontal |
Logical. If set to |
violin |
Logical. Use |
... |
Arguments passed on to |
If ggplot2
package is available, it will be used. In order to switch to default
boxplot
from the graphics
package set option benchr.use_ggplot
to FALSE
: options(benchr.use_ggplot = FALSE)
.
Artem Klevtsov a.a.klevtsov@gmail.com
timings <- benchmark( rchisq(100, 0), rchisq(100, 1), rchisq(100, 2), rchisq(100, 3), rchisq(100, 5), times = 1000L ) boxplot(timings)