View source: R/plotPerformanceOAT.R
plotPerformanceOAT | R Documentation |
plotPerformanceOAT
uses the system model performance calculated using the function runSystemModel
and
the summary of the simulation generated using the function generateScenarios
& getSimSummary
as input.
The function creates line plots, each panel shows the variations in performance with perturbations in a single attribute. The function is intended for
use with simulations with attributes perturbed on a one-at-a-time (OAT) grid.
plotPerformanceOAT(
performance,
sim,
metric = NULL,
topReps = NULL,
col = NULL,
ylim = NULL
)
performance |
a named list; contains the system model performance calculated using |
sim |
a list; a summary of a simulation containing the scenarios generated using the function |
metric |
a string; the name of the performance metric to be plotted. The argument can be used to select a metric from performance for plotting. |
topReps |
an integer (default = NULL); the number of "top" replicates to be used. The "top" replicates will be identified for each target based on the simulation fitness.
The average performance across |
col |
a colour; the colour of the lines. If |
ylim |
a vector of 2 values; the minimum and maximum limits of the y-axis (performance) scale. |
The plots show the mean value of performance across replicates. The ranges between the minimum and maximum values of performance across replicates are shaded.
The function is intended for use with simulations containing attributes perturbed on an "OAT" grid. If the perturbations are on a "regGrid", this function will subset
OAT perturbations, if available, to create the plots. The function creates separate plots for perturbations in attributes of temperature and other variables.
The function may be called with performance
argument specifying the metric to be plotted to plot other metrics.
The plot of the performance space and the ggplot object.
runSystemModel
, generateScenarios
, plotPerformanceSpace
, getSimSummary
# load example datasets
data("egSimSummary")
data("egSimPerformance")
plotPerformanceOAT(egSimPerformance[2], egSimSummary)
plotPerformanceOAT(egSimPerformance[1], egSimSummary)
# using the metric argument
plotPerformanceOAT(egSimPerformance, egSimSummary, metric = "Reliability (-)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.