title: R Flexdashboard, how to get map to show in dashboard?
body: <pre><code>library(flexdashboard)
  library(tidycensus)
  library(tidyverse)
  library(mapview)
  library(dplyr)
  library(tigris)
  library(leafsync)
  library(leafpop)
  library(readxl)
  library(DT)
  library(highcharter)
  </code></pre>
  <pre><code>{r}
  #Importing Data ****Update file path before running****
  states=data.frame(read_excel('C:/Users/pmckercher/Documents/CISA Research/CISA Funding Data.xlsx',
                    sheet = 'Funding By State',col_names = TRUE ))
  us_geo=tigris::states(cb=FALSE, resolution = '20m') #State Sahpe File Download
  all_data=inner_join(us_geo,states, by=c(&quot;NAME&quot;=&quot;State&quot;)) #Joinging the two datasets
  # These are shells, replace zcol= '' with a percentage of use column (will have to
  #update the python file to calculate this when we get the real data) to make the display
  #show how much of each states allocation has been provided.
  Map22=mapview(all_data,zcol=c('fund_22'),col.regions = RColorBrewer::brewer.pal(11, &quot;RdYlGn&quot;), alpha.regions = 1, popup= popupTable(all_data,zcol=c('NAME', 'fund_22','fund_23','fund_24','fund_25')), label=c('NAME'))
  Map22
  </code></pre>
  <p>This produces this visualization in the viewer:
  <a href="https://i.stack.imgur.com/4z879.png" rel="nofollow noreferrer">Mapview Interactive Map</a>
  But, when the Dashaboard window pops up. it produces this where the map should be:
  <a href="https://i.stack.imgur.com/fOfSy.png" rel="nofollow noreferrer">Buffering bars</a></p>
  <p>How do I get the Interactive map to show up in the Dashboard window?</p>