Dear all,
I am trying to overlay bar charts with a country data map. This does not work , the only thing that works is overlaying the bar chart with the map picture.
Here you find the not working code.
CP = colorRampPalette(brewer.pal(9,"Blues"))(100)
worldmap = joinCountryData2Map(raw_data,
joinCode = "ISO3",
nameJoinColumn = "ISO3")
#mapDevice("x11")
mapCountryData(worldmap,
nameColumnToPlot = "data",
catMethod = 'fixedWidth',
numCats = 100,
colourPalette = CP)
## some code to get the new data for the barchart
mapBars(dF = df
, nameX = "LON"
, nameY = "LAT"
, nameZs=c("A","B","C")
, zColours=c(1:3)
, addCatLegend = TRUE
, symbolSize = 4
, barWidth = 4
, borderCol = NA
, add=T
)
Any ideas why this fails would be very welcome
Thank you
JP

