knitr::opts_chunk$set(echo = TRUE)
library(leaflet) data(breweries91) leaflet() %>% addTiles() %>% addMarkers(data = breweries91)
library(leaflet) data(breweries91) leaflet() %>% addTiles() %>% addMarkers(data = breweries91, icon = list( iconUrl = 'http://icons.iconarchive.com/icons/artua/star-wars/128/Master-Joda-icon.png', iconSize = c(75, 75)))
library(leaflet) data(breweries91) leaflet() %>% addTiles() %>% addMapPane("overlay03", zIndex = 403) %>% addMarkers(data = breweries91, icon = list( iconUrl = 'http://icons.iconarchive.com/icons/artua/star-wars/128/Master-Joda-icon.png', iconSize = c(75, 75)), options = markerOptions(pane="overlay03"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.