Learn R Programming

nparLD (version 2.3.1)

plot.nparld_mctp: Plot nparLD multiple contrast results

Description

Displays simultaneous confidence intervals for local contrasts from a multiple contrast test procedure. The plot shows the contrast estimates together with their simultaneous confidence limits and a vertical reference line at zero. Intervals excluding zero are highlighted by default.

Usage

# S3 method for nparld_mctp
plot(
  x,
  xlab = "Contrast effect",
  ylab = "",
  main = NULL,
  ref.line = 0,
  ref.lty = 2,
  ref.col = "gray50",
  pch = 19,
  lwd = 2,
  col = NULL,
  ...
)

Arguments

x

An object of class "nparld_mctp".

xlab

Label for the x-axis. The default is "Contrast effect".

ylab

Label for the y-axis. The default is an empty label.

main

Optional plot title.

ref.line

Optional vertical reference line. The default is 0.

ref.lty

Line type for the reference line.

ref.col

Colour of the reference line.

pch

Plotting character.

lwd

Line width.

col

Optional colors for confidence intervals and point estimates. If NULL, intervals excluding zero are shown in red and intervals including zero are shown in black.

...

Further graphical arguments.

Details

Displays simultaneous confidence intervals for the local contrast results returned by the multiple contrast test procedure. The vertical reference line at zero indicates the null value for contrast effects.

Examples

Run this code
# \donttest{
data(shoulder)

fit <- nparLD(
  resp ~ group1 * group2 * time,
  data = shoulder,
  subject = "subject",
  hypothesis = "H0p",
  contrast = list("time", "Dunnett")
)

plot(fit$MCTP)
# }

Run the code above in your browser using DataLab