R/lines.XYCurveFit.R

setMethodS3("lines", "XYCurveFit", function(x, xNew=NULL, ...) {
  # To please R CMD check
  fit <- x;

  if (is.null(xNew)) {
    xNew <- fit$x;
    xNew <- sort(xNew);
    xNew <- xNew[!duplicated(xNew)];
  }
  y <- fit$predictY(xNew);
  lines(x=xNew, y=y, ...);
}) # lines()


############################################################################
# HISTORY:
# 2009-07-15
# o Created.
############################################################################

Try the aroma.light package in your browser

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

aroma.light documentation built on Nov. 8, 2020, 4:56 p.m.