plot.zcurve: Plot fitted z-curve object

Description Usage Arguments See Also Examples

View source: R/main.R

Description

Plot fitted z-curve object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'zcurve'
plot(
  x,
  annotation = FALSE,
  CI = FALSE,
  extrapolate = FALSE,
  y.anno = c(0.95, 0.88, 0.78, 0.71, 0.61, 0.53, 0.43, 0.35),
  x.anno = 0.6,
  cex.anno = 1,
  ...
)

Arguments

x

Fitted z-curve object

annotation

Add annotation to the plot. Defaults to FALSE.

CI

Plot confidence intervals for the estimated z-curve. Defaults to FALSE.

extrapolate

Scale the chart to the extrapolated area. Defaults to FALSE.

y.anno

A vector of length 8 specifying the y-positions of the individual annotation lines relative to the figure's height. Defaults to c(.95, .88, .78, .71, .61, .53, .43, .35)

x.anno

A number specifying the x-position of the block of annotations relative to the figure's width.

cex.anno

A number specifying the size of the annotation text.

...

Additional arguments including main, xlab, ylab, cex.axis, cex.lab

See Also

zcurve()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# simulate some z-statistics and fit a z-curve
z <- abs(rnorm(300,3))
m.EM <- zcurve(z, method = "EM", bootstrap = 100)

# plot the z-curve
plot(m.EM)

# add annotation text and model fit CI
plot(m.EM, annotation = TRUE, CI = TRUE)

# change the location of the annotation to the left
plot(m.EM, annotation = TRUE, CI = TRUE, x_text = 0)

zcurve documentation built on May 7, 2021, 9:06 a.m.