English: This request originated from the Illustration workshop, and was solved mathematically using the data at the linked article. By definition, the population density is the population divided by area, or:
or, equivalently,
We want to resize each state according to its population, so each state's new area will be defined by a new (constant) population density, :
We can substitute for in the above expression to get:
This means the new area is simply the existing area multiplied by an areal scaling factor . Since area is the product of two dimensions, we can apply an equal scaling factor in each dimension (which is what the SVG expects) by taking the square root of the areal scaling factor:
I took the new population density to be equal to the 2013 population density of New Jersey, 1,210.1 persons per square mile, which in essence normalizes the scaling factor to New Jersey. For instance, California has a 2013 population density of 246.1 persons per square mile, so:
That means that I apply a scaling transformation factor of 0.451 to the California SVG object in each (x,y) dimension. When all is said and done, though, I had to end up translating most of the state SVG objects as well, so it ended up being a matrix transform (scaling + translation). When the population and/or land areas update, the updated data could be used to adjust the scaling factors in the SVG directly without having to go through a graphical editor.
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.