Learn R Programming

TRES (version 1.1.0)

plot.Tenv: Plot coefficients and p-value for Tenv object.

Description

Plot method for object returned from TRR.fit and TPR.fit functions.

Usage

# S3 method for Tenv
plot(x, thrd = 0.05,
  main = c(paste0("Coefficient plot ", "(", x$method, ")"),
  paste0("P value plot ", "(", x$method, ")")), ...)

Arguments

x

An object of class "Tenv", as from TPR.fit or TRR.fit.

thrd

Significant level of p-value. Default is 0.05.

main

Title to each plot.

...

Other parameters to be passed through to plotting functions.

Details

coef(x) must be a two-way tensor or a matrix. For the object return from TPR.fit, only the coefficients plot is displayed. But for the object return from TRR.fit, both the coefficients plot and p-value plot is displayed.

Examples

Run this code
# NOT RUN {
 data("bat")
 Xn <- bat$Xn
 Yn <- bat$Yn
 fit <- TRR.fit(Xn, Yn, method="standard")
 plot(fit)
# }

Run the code above in your browser using DataLab