#getting example data
dF <- getMap()@data
mapBars( dF,nameX="LON", nameY="LAT",nameZs=c('POP_EST','GDP_MD_EST') )
mapBars( dF,nameX="LON", nameY="LAT",nameZs=c('POP_EST','GDP_MD_EST'), mapRegion='africa' )
mapBars( dF,nameX="LON", nameY="LAT",nameZs=c('POP_EST','GDP_MD_EST'),
mapRegion='africa', symbolSize=20 )
mapBars( dF,nameX="LON", nameY="LAT",nameZs=c('POP_EST','GDP_MD_EST'), mapRegion='africa',
symbolSize=20, barOrient = 'horiz' )
# this does work too
#mapBars( dF,nameX="LON", nameY="LAT"
# , nameZs=c('POP_EST','GDP_MD_EST')
# , mapRegion='africa'
# , symbolSize=4 )
Run the code above in your browser using DataLab