Skip to contents

Plots selected variables from a trial comparison.

The summary method plots the objects contained in the comparison.

Usage

# S3 method for class 'TrialComparison'
plot(x, xParamName = NULL, yParamName = NULL, ..., data = NULL)

# S3 method for class 'TrialComparisonSummary'
plot(x, xParamName = NULL, yParamName = NULL, ..., showSummary = FALSE)

Arguments

x

A TrialComparison or its summary.

xParamName, yParamName

Optional axis column names. Omitted axes are selected only when there is exactly one candidate: inputs/design settings are preferred for x, results for y, then other varying numeric columns. Identifier columns are excluded; stages remain eligible axes. yParamName may also explicitly select multiple numeric parameters. Their axis sides can be controlled through yAxisSide passed to plot.TrialComparison().

...

Arguments passed to plot.TrialComparison(), including categories, grouping, titles and line/point settings. Explicit axis selections prevail.

data

Optional comparison data frame with additional annotation columns. Rows must follow the order of as.data.frame(x).

showSummary

If TRUE, also print the summary before creating its plot.

Value

A ggplot object. Ambiguous selections raise an error listing candidate descriptions and a concrete example.