hotspot_wrap <- function(map, peaks, peak_window = 1, minLOD = 5.5,
project_info) {
# This uses global hotspots
if(peak_window == 1 & minLOD == 5.5 & nrow(project_info))
read_project(project_info, "hotspot")
else {
if(shiny::isTruthy(map) && shiny::isTruthy(peaks)) {
hotspot(map, peaks, peak_window, minLOD)
} else
NULL
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.