<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fromthepantothefire &#187; cartogram</title>
	<atom:link href="http://fromthepantothefire.com/tag/cartogram/feed/" rel="self" type="application/rss+xml" />
	<link>http://fromthepantothefire.com</link>
	<description>&#34;...we are not pans and barrows, nor even porters of the fire and torchbearers, but children of the fire, made of it...&#34; -- Ralph Waldo Emerson, The Poet</description>
	<lastBuildDate>Mon, 02 Jan 2023 06:32:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Cartogram Basics</title>
		<link>http://fromthepantothefire.com/2012/11/20/cartogram-basics/</link>
		<comments>http://fromthepantothefire.com/2012/11/20/cartogram-basics/#comments</comments>
		<pubDate>Tue, 20 Nov 2012 22:37:45 +0000</pubDate>
		<dc:creator><![CDATA[Zia]]></dc:creator>
				<category><![CDATA[Maps]]></category>
		<category><![CDATA[cartogram]]></category>
		<category><![CDATA[ScapeToad]]></category>

		<guid isPermaLink="false">http://fromthepantothefire.com/?p=223</guid>
		<description><![CDATA[I am working on a Cartogram of the World with my friend Kim Ducharme. We are looking for something dramatic to show disparity between affluent countries and developing countries and a cartogram seems a great way to hit the message home. This is my first foray in to the world of cartograms, so here is some useful [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I am working on a Cartogram of the World with my friend Kim Ducharme. We are looking for something dramatic to show disparity between affluent countries and developing countries and a cartogram seems a great way to hit the message home. This is my first foray in to the world of cartograms, so here is some useful background.</p>
<p>A cartogram is a map where the <strong>areas</strong> of regions have been adjusted to represent some other metric of interest. They are intentionally distorted &#8220;maps&#8221; and yes there is controversy over them :).</p>
<p>Cartograms come in a few different flavors (see <a href="http://indiemaps.com/blog/2008/04/cartogram-design/">indiemaps summary</a>):</p>
<ol>
<li>Non-contiguous Cartograms: Each object (state/country/etc) grows or shrinks independently of its neighbors. With the result being perfectly accurate, but the original map is filled with white space. Excellent history of <a href="http://indiemaps.com/blog/2008/12/noncontiguous-area-cartograms/">Non-contiguous cartograms</a> here.</li>
<li>Dolring Cartograms: Replace the regions with <a href="http://www.ncgia.ucsb.edu/projects/Cartogram_Central/cartogram_examples/dorling3.jpg">circles or squares</a> I won&#8217;t discuss these more.</li>
<li>Contiguous Cartograms: Attempts to keep boundaries connected and distorts the shapes (often grossly) attempting to scale the country areas according to some metric. The canonical approach seems to be the <a href="http://www-personal.umich.edu/~mejn/cart/">Gastner/Newman diffusion method</a>.</li>
</ol>
<div><span style="line-height: 19.200000762939453px;">Our preliminary investigation showed that the Non-contiguous Cartogram was not a very satisfying image. Too much white space and just doesn&#8217;t have the punch of a wildly distorted contiguous cartogram. </span></div>
<div></div>
<div><span style="line-height: 19.200000762939453px;">Here are is an example of the diffusion method image generated by Mark Newman, this one represents Total spending on Healthcare, check out <a href="http://www-personal.umich.edu/~mejn/cartograms/">Mark Newman&#8217;s site</a> for more in this family:</span></div>
<div></div>
<div></div>
<p><a href="http://www-personal.umich.edu/~mejn/cartograms/"><img class="alignnone size-medium wp-image-225" title="healthcare1024x512" src="http://fromthepantothefire.com/wp-content/uploads/2012/11/healthcare1024x5121-300x150.png" alt="" width="300" height="150" /></a></p>
<p>Having decided to pursue generating a contiguous area cartogram, first step was to find out how.</p>
<h3>Selecting a Cartogram program:</h3>
<p>There are a few options I found for generating a contiguous area cartogram:</p>
<ol>
<li>Download the source for Gastner/Newman&#8217;s <a href="http://www-personal.umich.edu/~mejn/cart/">cart</a> program, compile and run it. Looks doable, but would need to massage my data into some grid format. Maybe someone else has made it easier&#8230;</li>
<li>Apparently ArcGIS has a <a href="http://arcscripts.esri.com/details.asp?dbid=15638">Cartogram Geoprocessing Tool</a> based on the Gastner/Newman method too. But I don&#8217;t have a budget for fancy commercial software.</li>
<li><a href="http://scapetoad.choros.ch/index.php">ScapeToad</a>: At last, a ready to go cartogram generating program also based on the Gastner/Newman method. This one has a GUI and is released under the GPL. Perfect!</li>
</ol>
<div>
<h3>Using ScapeToad to generate a cartogram:</h3>
</div>
<p>Using ScapeToad is easy! It has simple instructions and I only ran it a few issues easy to work around. It uses ESRI shapefiles and will output the updated image as an ESRI shapefile (with error  data added in). I also found the ScapeToad documentation pretty helpful. The only annoying issue  on my system was the recently used files selection silently didn&#8217;t work. So when opening a shapefile (via &#8220;Add Layer&#8230;&#8221;) I had to always browse to the correct location. I will discuss about the &#8220;Mass&#8221; and &#8220;Density&#8221; options in another post. Otherwise there is not much to say, I will let <a href="http://scapetoad.choros.ch/help/v12/">ScapeToad</a> speak for itself.</p>
<p>ScapeToad requires the shape file to have &#8220;perfect contiguity&#8221;, so find a suitable shapefile and test it before moving on. As discussed in a previous post, the <a href="http://www.naturalearthdata.com/downloads/">Natural Earth shapefiles</a> are now my go to. These files conveniently have some population data you can use to test the ScapeToad is working.</p>
<p>More on the real challenges, <a title="Adding custom data to a shapefile using pyshp 1.1.4" href="http://fromthepantothefire.com/2012/11/22/adding-custom-data-to-a-shapefile-using-pyshp-1-1-4/"><em>adding your own data to a shapefile</em></a>, coming up&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://fromthepantothefire.com/2012/11/20/cartogram-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
