R/draw.improvement.R

Defines functions draw.improvement

draw.improvement <- function(scores, ...) {
    result <- list()
    maxes <- c()
    for (ind in 1:length(scores)) {
        maxes[ind] <- max(scores[1:ind])
    }
    plot(maxes, main=paste("Improvement of scores"), type="l", ...)
    result[["maxes"]] <- maxes
    return(result)
}

Try the Pigengene package in your browser

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

Pigengene documentation built on Nov. 8, 2020, 6:47 p.m.