R/testres-visualizations.R

Defines functions plot.TestResult

Documented in plot.TestResult

#' Visualization methods for (sequential) test results.
#' @param x An \code{\link{TestResult}} object
#' @param ... Ignored.
#' @return A \code{\link[ggplot2]{ggplot}} object.
#' @method plot TestResult
#' @rdname testres-visualization
#' @importFrom graphics plot
#' @S3method plot TestResult
plot.TestResult <- function(x, ...) {
  p <- ggplot(x, aes(samples, value))
  p <- p + facet_grid(tests ~ datasets, scales = "free_y")
  p <- p + geom_line()

  p
}

Try the benchmark package in your browser

Any scripts or data that you put into this service are public.

benchmark documentation built on May 30, 2017, 5:20 a.m.