R/kstar_vlines.R

Defines functions kstar_vlines

Documented in kstar_vlines

#' Prepare K-star vertical lines
#' 
#' @template args-he
#' @param plot_params Plots parameters
#' @keywords internal
#' 
kstar_vlines <- function(he, plot_params) {
  
  if (length(he$kstar) > 0) {
    abline(v = he$kstar,
           col = "dark grey",
           lty = "dotted")
    
    text(x = he$kstar,
         y = min(plot_params$ylim),
         paste("k* = ", he$kstar , sep = ""))
  }
}

Try the BCEA package in your browser

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

BCEA documentation built on Nov. 25, 2023, 5:08 p.m.