title: R: adding title to a leaflet map and Saving as PDF
body: <p>What is please the simples way to add title to a <code>leaflet</code> map object?</p>
  
  <p>I would like to add title to a leaflet map that I have and also wanted to ask about saving as pdf.</p>
  
  <p>When saving as pdf (in example) the map if cut off and there is a lot of empty space in pdf, is there a way how to solve this as well?</p>
  
  <pre><code>library(leaflet)
  library(ggplot2)
  library(sf)
  library(spdep)
  library(leaflet.minicharts)
  library(leafletCN)
  library(mapview)
  
  
  # Regions of each country selected
  
  URL &lt;- "https://biogeo.ucdavis.edu/data/gadm3.6/Rsp/gadm36_DEU_1_sp.rds"
  data &lt;- readRDS(url(URL))
  
  
  m &lt;- 
    leaflet() %&gt;% addProviderTiles("CartoDB.Positron") %&gt;% 
    addPolygons(data=data, weight = 1, fill = F, color = "red")
  
  mapshot(m, file = "m.pdf")
  
  
  </code></pre>