R/plot.multiQQ_function.R

#' @export

plot.multiQQ <- function(x, y, ...) {
  plot(1, type = "n", xlab = "Theoretical quantiles", ylab = "Sample quantiles", xlim = c(0, x$xmax), ylim = c(0, x$xmax), main = x$main)
  lines(rbind(c(0, 0), c(x$xmax, x$xmax)))
  mapply(points, x$theoreticalProbs, col = 1:4, pch = 1:4)
  legend("topleft", x$distr, col = 1:4, pch = 1:4)
  invisible(NULL)
}
hutchisonjtw/JNCCTools documentation built on May 17, 2019, 9:14 p.m.