gstat_rename_authors <- function(data, authorMap) {
authorMapFrame <- data_frame(Author = names(authorMap), to = authorMap)
data2 <- left_join(data, authorMapFrame)
data2 <- data2 %>% mutate(Author = ifelse(is.na(to), Author, to)) %>% select(-to)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.