Learn R Programming

tramME (version 1.0.7)

plot.smooth.tramME: Plot smooth terms of a tramME model.

Description

Plot smooth terms of a tramME model.

Usage

# S3 method for smooth.tramME
plot(
  x,
  which = seq_along(x),
  col = 1,
  fill = grey(0.5, 0.25),
  trafo = I,
  add = FALSE,
  ...
)

Arguments

x

A smooth.tramME object.

which

Select terms to be printed by their indices

col

Line color for the point estimates.

fill

Fill color for the confidence intervals.

trafo

Monotonic transformation to be applied on the smooth terms

add

Add the plot to an existing figure.

...

Optional parameters passed to the plotting functions.

Examples

Run this code
data("mcycle", package = "MASS")
fit <- LmME(accel ~ s(times), data = mcycle)
plot(smooth_terms(fit, as.lm = TRUE))

Run the code above in your browser using DataLab