plotPower {modnets} | R Documentation |
Plot results of power simulations
Description
Plots the output from the mnetPowerSim
function.
Usage
plotPower(
x,
by = "type",
yvar = "default",
yadd = NULL,
hline = 0.8,
xlab = "Number of cases",
title = NULL,
...
)
## S3 method for class 'mnetPower'
plot(
x,
by = "type",
yvar = "default",
yadd = NULL,
hline = 0.8,
xlab = "Number of cases",
title = NULL,
...
)
Arguments
x |
|
by |
In development. Currently only supports |
yvar |
The performance metrics to plot. Options include:
|
yadd |
Specify additional performance metrics to plot. The final
performance metrics that end up being plotted are simply: |
hline |
Numeric value between 0 and 1 for where to plot a horizontal
line of interest. Can set to |
xlab |
Character string for the x-axis label. |
title |
Character string for the title of the plot. |
... |
Additional arguments. |
Details
The options of what performance metrics to plot include:
Sensitivity
Specificity
Correlation
MAE (Mean Absolute Error)
Precision
Accuracy
FDR (False Discovery Rate)
Value
Plots the results of a power simulation according to a variety of performance metrics.
See Also
Examples
x <- mnetPowerSim(niter = 10, N = c(100, 200))
summary(x)
plot(x)