I'm trying to produce a graphic using rworldmap, using my data frame dagg. ETA: data. Here's what I have so far.
library(rworldmap)
data(dagg)
sPDF <- joinCountryData2Map(dagg, joinCode='ISO2',
nameJoinColumn='country', verbose='TRUE')
mapDevice()
mapCountryData(sPDF, nameColumnToPlot='avoidance',
numCats=10, mapTitle="Avoidance", addLegend=TRUE)
dev.off()
But when I run, nothing shows up. The console displays "null device 1". It was working just now, and I'm not sure what could have changed it...
Perhaps I'm not using the right device?
ETA: Here's the rundown on rworldmap that I'm reading from.