Learn R Programming

cTMed (version 1.0.4)

plot.ctmedmed: Plot Method for an Object of Class ctmedmed

Description

Plot Method for an Object of Class ctmedmed

Usage

# S3 method for ctmedmed
plot(x, col = NULL, legend_pos = "topright", ...)

Value

Displays plots of point estimates and confidence intervals.

Arguments

x

Object of class ctmedmed.

col

Character vector. Optional argument. Character vector of colors.

legend_pos

Character vector. Optional argument. Legend position.

...

Additional arguments.

Author

Ivan Jacob Agaloos Pesigan

Examples

Run this code
phi <- matrix(
  data = c(
    -0.357, 0.771, -0.450,
    0.0, -0.511, 0.729,
    0, 0, -0.693
  ),
  nrow = 3
)
colnames(phi) <- rownames(phi) <- c("x", "m", "y")

# Range of time intervals ---------------------------------------------------
med <- Med(
  phi = phi,
  delta_t = 1:5,
  from = "x",
  to = "y",
  med = "m"
)
plot(med)

Run the code above in your browser using DataLab