Learn R Programming

taRifx (version 1.0.6.2)

autoplot.microbenchmark: Autoplot method for microbenchmark objects: Prettier graphs for microbenchmark using ggplot2

Description

Uses ggplot2 to produce a more legible graph of microbenchmark timings

Usage

# S3 method for microbenchmark
autoplot (object, ...,
    y_max = max(by(object$time, object[["expr"]], uq)) * 1.05)

Arguments

object

A microbenchmark object

Ignored

y_max

The upper limit of the y axis (defaults to 5 percent more than the maximum value)

Value

A ggplot2 plot