R/DrawLine.R

Defines functions DrawLine

#' @importFrom graphics arrows
#' @importFrom graphics lines
DrawLine <- function(start, end, arrow = F, ...) {
    if (arrow) 
        arrows(start[1], start[2], end[1], end[2], ...) else lines(c(start[1], end[1]), c(start[2], end[2]), ...)
}
wqmeeker/RTseries documentation built on Dec. 31, 2022, 10 a.m.