plot.CompoML {Wcompo}R Documentation

Plot the predicted mean function under the proportional means model

Description

Plot the predicted mean function under the proportional means model for a new observation.

Usage

## S3 method for class 'CompoML'
plot(
  x,
  z = NULL,
  xlab = "Time",
  ylab = "Mean function",
  lty = 1,
  frame.plot = FALSE,
  add = FALSE,
  ...
)

Arguments

x

An object returned by CompoML.

z

Covariate vector for the new observation. If NULL, the baseline mean function will be plotted.

xlab

A label for the x axis.

ylab

A label for the y axis.

lty

Line type for the plot.

frame.plot

Boolean argument indicating whether to add a rectangular frame to the plot.

add

If TRUE, the curve will be overlaid on an existing plot; otherwise, a separate plot will be constructed.

...

Other arguments that can be passed to the underlying plot method.

Value

No return value, called for side effects.

See Also

CompoML, print.CompoML.

Examples

## see example for CompoML

[Package Wcompo version 1.0 Index]