Personal tools
You are here: Home Members Daniel Ricard About the map of attendees

About the map of attendees

R code to produce the map of registered attendees

The map of the registered attendees was produced using the R software environment for statistics and graphics.



Here is the code to produce a PNG file (you need the "maps" package installed):



# attendees-map.R
# Daniel Ricard Started: Sep. 13 2007
require(maps)

countries <- c('Antarctica', 'Australia','Bangladesh','Belgium','Brazil','Canada','Colombia','Denmark', 'Germany', 'Greenland', 'Iran','India','Indonesia','Italy','Japan','Lebanon','Mexico','New Zealand','Nigeria','Senegal','Spain','Sweden', 'UK','Ukraine','USA')
colors <- rep('blue', length(countries))

png(width=600, height=320, "attendees.png")
par(cex=0.7)
map('world')
map(
'world',
countries,
fill=TRUE,
col=colors,
add=TRUE
)
title('Geographic association of registered attendees as of Sep. 27th 2007')
dev.off()



Document Actions