plot.precision: Plot misclassification error rates from PRECISION (both...

Description Usage Arguments Value Examples

Description

Plot error rates from PRECISION output that is being extracted by extract.precision.error

Usage

1
2
3
4
## S3 method for class 'precision'
plot(data,
  mytitle = "PRECISION results (misclass. error rates)",
  design.order = NULL, ylim = c(0, 0.5), iflex = TRUE)

Arguments

data

a resulted PRECISION output from extract.precision.error.

mytitle

the title of the plot.

design.order

indices in the order of what user would like to plot from the resulted output from extract.precision.error. By default, every simulation is plotted.

ylim

y limit. By default, ylim = c(0, 0.5).

iflex

whether data if a PRECISION output from precision.simulate or precision.simulate.flex. By default, iflex = TRUE indicating that the data are from precision.simulate.flex.

Value

a boxplot of misclassification error rates

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
## PRECISION output
plot.precision(data = precision.results.err.df, 
  design.order = 1:10,
  mytitle = "My PRECISION results", iflex = FALSE)

## PRECISION FLEX output
plot.precision(data = precision.results.flex.err.df, 
  design.order = 1:10,
  mytitle = "My PRECISION FLEX results")
          
# exclude ext.uh
plot.precision(data = precision.results.flex.err.df[!names(precision.results.flex.err.df) %in% "ext.uh"], 
  design.order = 1:10,
  mytitle = "My PRECISION FLEX results")

## End(Not run)

LXQin/precision documentation built on May 11, 2019, 6:24 p.m.