get_zoom_xlims <- function(lead.pos,
zoom_window,
verbose = TRUE){
messager("Computing x-axis limits for zoom_window.",v=verbose)
xlims <- c(lead.pos - as.integer(zoom_window / 2),
lead.pos + as.integer(zoom_window / 2))
return(xlims)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.