invert <- function(db) {
max_elev <- max(db$elev, na.rm = TRUE)
db <- dplyr::mutate(db, elev = max_elev - elev)
return(db)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.