R/panel.addons.q

Defines functions panel.addons

panel.addons <- function(x, y, smooths = FALSE, rugplot = FALSE, id.n = 3, ...)
{
  if(smooths)
    panel.loess(x, y, col = "red")

  if(rugplot)
    panel.rug(x, col = "black")

  if(id.n > 0) {
    n <- length(y)
    out <- order(abs(y))[(n - id.n + 1):n]
    panel.text(x[out], y[out], paste(" ", out, sep = ""), adj = 0)
  }

  invisible()
}

Try the fit.models package in your browser

Any scripts or data that you put into this service are public.

fit.models documentation built on May 2, 2019, 4:44 p.m.