R is not just for statistical analysis and data mining, it can also be employed to prepare nice infographics. Here is a quick example of infographic with R.
With few lines of R code we can create, starting from commonly available data, an infographic showing the relative magnitude of the population for the different countries around the world, with the country name placed on the country centroid (like it would be on a map) and the font size proportional to the population size. Simple but impactful!
Here is the R code to produce the infographic above.
# World population infographic
# Author: Marco Ghislanzoni
# Load the ggplot2 library
# Countries of the World - Top Level Administrative Divisions - May 15, 2012
# Data source: http://opengeocode.org/download/cow.php
# Note: the file starts with comment lines which needs to be manually
# removed before importing into R. The first line in the file
# should be the one with the column headers.
cow <- read.csv("cow.txt", sep=";")
# Send the output to a PDF file
# Size corresponds to an A3 paper: 16.5 inches x 11.7 inches
pdf(file="world_2012.pdf", width=16.5, height=11.7)
# Plot the world map, placing country names in the country centroid and making
# the size of the font proportional to the population of the country
ggplot() + geom_text(data=cow, aes(x=longitude, y=latitude, label=ISOen_proper, size=population), alpha=I(1/3)) + scale_size(guide="none", range=c(0.1,50))
# End of PDF output
The comment in the source code shows the source for the used data. Note that after downloading the data you need to remove the comment lines from it before importing into R.
By default the output is sent to a PDF file, which can be imported for further editing into InkScape or Adobe Illustrator. You can download it from the link below.