#' generate baseline vector of a numeric vector
#'
#' @param x
#' @param min.x
#' @param max.x
#' @param min.y
#' @param max.y
#'
#' @return
#' @export
#'
#' @examples
get.baseline <- function(x, min.x, max.x, min.y, max.y) {
baseline <- (max.y - min.y) / (max.x - min.x) * (x - max.x) + max.y
return(baseline)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.