マークダウンで rworldmap を使用してデータを使用して素敵なマップを作成できますが、Shiny R を使用して同じマップを実装することはできません。助けてください。
私のコードスニペット:
# Join data to a map to create a spatialPolygonsDataFrame
sPDF <- joinCountryData2Map(comb_mdata, joinCode='NAME', nameJoinColumn='Country')
par(mai=c(0,0,0.2,0),xaxs="i",yaxs="i")
mapParams <- mapCountryData(sPDF, nameColumnToPlot='Wt.Score',
mapRegion="world",
missingCountryCol='dark grey', numCats=10,
colourPalette=c('green4','green1','greenyellow','yellow','yellow2','orange','coral','red','red3','red4'),
addLegend=FALSE,
oceanCol="light blue")
do.call(addMapLegend, c(mapParams, legendWidth=1.0, legendIntervals="page", legendMar=3))
mtext("[Grey Color: No Data Available]",side=1,line=-41)