.getEdgePosition <- function(H, thresh) {
if (H[2] >= thresh) {
edgePos <- "before"
}
else if (H[1] > thresh) {
edgePos <- "crosses"
}
else {
edgePos <- "after"
}
return(edgePos)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.