plotElapsed: plotElapsed

Description Usage Arguments Value Examples

View source: R/plotElapsed.R

Description

Plot total elapsed time per run, split per step.

Usage

1
2
3
4
5
6
7
8
9
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

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

plger/pipeComp documentation built on Nov. 2, 2021, 8:40 p.m.