Learn R Programming

bootnet (version 1.0.0)

plot.netSimulator: netSimulator S3 methods

Description

Plot, print and summary methods for netSimulator output.

Usage

# S3 method for netSimulator
plot(x, xvar = "factor(nCases)",
                              yvar = c("sensitivity", "specificity", "correlation"),
                              xfacet = "measure", yfacet = ".", color = NULL,
                             ylim = c(0,1), print = TRUE,  xlab = "Number of cases", 
                              ylab, ...)
# S3 method for netSimulator
print(x, digits = 2, ...)
# S3 method for netSimulator
summary(object, digits = 2, ...)

Arguments

x

Output of netSimulator.

object

Output of netSimulator.

xvar

String indicating the variable to be used on the x-axis.

yvar

String vector indicating the variable(s) to be used on the y-axis.

xfacet

String indicating the variable to be used on the horizontal facets (or "." to omit).

yfacet

String indicating the variable to be used on the vertical facets (or "." to omit).

color

String indicating the variable to be used in coloring boxplots.

ylim

Y-axis limits.

print

Logical, should the plot be printed? This helps printing the plots to PDF files.

digits

Number of digits to be used in print and summary method.

xlab

X-axis label

ylab

Y-axis label. Defaults to combining the values in yvar. Is hidden when xfacet = "measure", as then it is clear what the y-axis represent from the facet labels.

Not used.