plotElapsed {pipeComp} | R Documentation

## plotElapsed

### Description

Plot total elapsed time per run, split per step.

### Usage

    plotElapsed(
      res,
      steps = names(res$elapsed$stepwise),
      agg.by,
      agg.fn = mean,
      width = 0.9,
      split.datasets = TRUE,
      return.df = FALSE
    )

### Arguments

`res` | Aggregated pipeline results
`steps` | The step(s) to plot (default all)
`agg.by` | The parameters by which to aggregate (set to FALSE to disable aggregation)
`agg.fn` | Aggregation function
`width` | Width of the bar; default 0.9, use 1 to remove the gaps
`split.datasets` | Logical; whether to split the datasets into facets
`return.df` | Logical; whether to return the data.frame instead of plot

### Value

A ggplot, or a data.frame if 'return.df=TRUE'

### Examples

    data("exampleResults", package="pipeComp")
    plotElapsed(exampleResults, agg.by = "norm")

[Package pipeComp version 1.0.0 Index]