“ dotting the dot map, revisited ”

65
“ Dotting The Dot Map, Revisited ” A. Jon Kimerling Dept. of Geosciences Oregon State University

Upload: dinhhanh

Post on 04-Jan-2017

221 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: “ Dotting The Dot Map, Revisited ”

“ Dotting The Dot Map, Revisited ”“ Dotting The Dot Map, Revisited ”

A. Jon Kimerling • Dept. of Geosciences • Oregon State UniversityA. Jon Kimerling • Dept. of Geosciences • Oregon State University

Page 2: “ Dotting The Dot Map, Revisited ”

Dot maps show the geographic distribution of features in an area by placing dots representing a certain quantity of features where the features are most likely to occur.

Page 3: “ Dotting The Dot Map, Revisited ”

dot unit value

dot diameter

When making a dot map, we first select a dot diameter and then determine the dot unit value.

Page 4: “ Dotting The Dot Map, Revisited ”

dot unit value > 1

The dot unit value is always greater than one.

Page 5: “ Dotting The Dot Map, Revisited ”

Selecting the dot diameter is a subjective decision.

Page 6: “ Dotting The Dot Map, Revisited ”

Selecting the dot unit value is done by trial and error or using the Mackay nomograph.

J. Ross Mackay, 1949

nom·o·graph –noun a graph, usually containing three parallel scales graduated for different variables, designed to solve an equation; also called an alignment graph or calculation graph.

Page 7: “ Dotting The Dot Map, Revisited ”

Using the Mackay nomograph to find the dot unit value…

Page 8: “ Dotting The Dot Map, Revisited ”

Mark the selected dot diameter…

Page 9: “ Dotting The Dot Map, Revisited ”

Draw a line from the origin to your mark…

Page 10: “ Dotting The Dot Map, Revisited ”

Find where the line crosses the zone of coalescing dots…

Page 11: “ Dotting The Dot Map, Revisited ”

Draw a vertical line down to the x-axis…

Page 12: “ Dotting The Dot Map, Revisited ”

52

Note the number of dots per square centimeter.

Page 13: “ Dotting The Dot Map, Revisited ”

Then, find the map area of the region that will have the highest density of dots…

1.2 sq cmWHEAT

Page 14: “ Dotting The Dot Map, Revisited ”

52 dots / sq cm * 1.2 sq cm =62 dots

Multiply the map area by the number of dots per sq. cm. from the nomograph to find the number of dots to place in that area…

WHEAT

Page 15: “ Dotting The Dot Map, Revisited ”

Divide the quantity in the densest area by the number of dots to find the dot unit value…

62,000 acres

WHEAT1997 STATE TOTALWashington: 2,422,506Idaho: 1.410,978Oregon: 882,862

Each dot represents1000 acres

62,000 acres / 62 dots =1000 acres / dot

Page 16: “ Dotting The Dot Map, Revisited ”

Issues with the Mackay nomograph…

mathematically imprecise zone of coalescence

point size range limits

5 4.5 4 pt 3.5 pt 3 pt 2.5 pt

2 pt

1 pt

1.5 pt

???

Page 17: “ Dotting The Dot Map, Revisited ”

2 pt

A 2 pt dot with diameter 0.0706 cm has an area of 0.00391 cm2, so 128 dots without overlap would have an aggregate area of only 0.50 cm2 – no overlap!

Let’s look carefully at the nomograph…

Page 18: “ Dotting The Dot Map, Revisited ”

2 pt

The MacKay nomograph is a graph of : dot area × dots per sq cm =

aggregate area of dots, with a zone of coalescing dots overlaid.

Let’s look carefully at the nomograph…

Page 19: “ Dotting The Dot Map, Revisited ”

We need a theoretically sound mathematical basis for dot coalescence.

Page 20: “ Dotting The Dot Map, Revisited ”

Modeling dot coalescence using the Unification Equation from probability theory is the answer!

Page 21: “ Dotting The Dot Map, Revisited ”

( ) ( ) ( ) ( ) ( ) ( )∑∑∑∑<<<

+

<<<==−+−+−=⎟

⎠⎞

⎜⎝⎛

n...kjin

n

kjikji

jiji

n

ii

n

ii E...EEEP...EEEPEEPEPEP 321

1

001U

The Dot Coalescence ModelA 1 cm2 square has a probability P of 1.0.

The area of each of dot (Ei) in proportion tothe area of the square is its probability p = P(Ei).

The Unification Equation…

Since the n dots in the square are the same size,Ei = Ej =…= En and p = P(Ei) = P(Ej) =…= P(En)

Page 22: “ Dotting The Dot Map, Revisited ”

( ) ( ) ∑∑∑∑<<<

+

<<<==−+−+−=⎟

⎠⎞

⎜⎝⎛

n...kji

nn

kjiji

n

i

n

ip...ppppP 132

001U

∑=

=n

inpp

0

Summations are numbers of dot combinations

The number of dot combinations in each summation are found by:

( )!kn!k!n−

( )⎟⎠⎞

⎜⎝⎛

=U

n

ipP

0is the aggregate dot area in cm2

The Unification Equation…

Page 23: “ Dotting The Dot Map, Revisited ”

( ) ( ) ( ) ( ) ( )kn

n

ip

!kn!k!n...p

!n!!np

!n!!nnppP

−−+−

−+

−−=⎟

⎠⎞

⎜⎝⎛ +

=

132

01

3322U

There is a term in the series for each dot added, but I truncated the series at k = 10 without affecting the results for up to:

( ) 9500

.pPn

i=⎟

⎠⎞

⎜⎝⎛

=U

with n up to 1,000 points.

So…

Page 24: “ Dotting The Dot Map, Revisited ”

( ) ( ) ( ) ( ) ( )101032

0 10101

3322p

!n!!n...p

!n!!np

!n!!nnppP

n

i −−+−

−+

−−=⎟

⎠⎞

⎜⎝⎛

=U

Or doing the factorials…

( )

( ) 1010

3

2

0

8006283109876543211

621

21

p,,

)n)(n)(n)(n)(n)(n)(n)(n)(n)(n(n

...p)n)(n(n

p)n(nnppPn

i

−−−−−−−−−−−+

−−−

+−

−=⎟⎠⎞

⎜⎝⎛

=U

So…

Page 25: “ Dotting The Dot Map, Revisited ”

Point Size p (cm2) Point Size p (cm2)1.0 0.000978 3.5 0.0119881.5 0.002202 4.0 0.0156582.0 0.003914 4.5 0.0119882.5 0.006116 5.0 0.0244663.0 0.008808

ESRI dots are in 0.5 Postscript point increments from 0.5 to 11 points, although sizes smaller than 1 or larger than 5 points would not normally be used for dot mapping.

Given that 1 Postscript point = 0.353 mm, the following table gives values of p (dot areas) for this dot size range.

Using the equation with ESRI dots…

Page 26: “ Dotting The Dot Map, Revisited ”

Running the equation with ESRI dots in 10 dot increments gave the results plotted on this graph.

Page 27: “ Dotting The Dot Map, Revisited ”

Example: Having half the 1 cm2 area coveredby 2 pt dots takes 177 randomly placed dots

Using the graph…

Page 28: “ Dotting The Dot Map, Revisited ”

2 pt

This compares with 128 dots from the MacKay nomograph.

Page 29: “ Dotting The Dot Map, Revisited ”

( ) 1000

×⎟⎟⎠

⎞⎜⎜⎝

⎛⎟⎠⎞

⎜⎝⎛−

=U

n

ipPnpPercent Overlap =

Amount of dot overlap is another measure of coalescence.

Page 30: “ Dotting The Dot Map, Revisited ”

Running the equation with ESRI dots in 10 dot increments gave the results plotted on this graph.

equal overlap pointsequal overlap points

Page 31: “ Dotting The Dot Map, Revisited ”

Equal overlap points define lines of constant dot overlap – a more precise form of zone of coalescing dots.

equal overlap pointsequal overlap points

Page 32: “ Dotting The Dot Map, Revisited ”

Testing the model…

Page 33: “ Dotting The Dot Map, Revisited ”

#include <stdio.h>#include <stdlib.h>

main(){

char oname[80];FILE*ofil;

int seed;

double r; /* random value in range [0,1) */

int count;seed = 10000; /* choose a seed value */srand(seed); /*initialize random number generator*/

printf("Enter output file name: ");scanf ("%s",oname);if((ofil = fopen(oname,"wt")) == NULL){

printf("error: cannot open output file\n");return 1;

}

for(count=1; count<=3000; ++count){r = 10.0*(rand() / ((RAND_MAX)+(1.0)));fprintf(ofil,"%lf\n",r);} return 0;

} /*main*/�

9.9774173.8888553.6059576.1492920.2853397.0288090.9994516.5185552.5637826.9284060.4122922.9953002.8353885.4656981.3723756.5127564.7497567.3422247.8265386.0760503.758240

Step 1. Generate lots of random numbers from 0.0 mm to 10.0 mm.

Page 34: “ Dotting The Dot Map, Revisited ”

Step 2. Split the numbers into two Excel columns and make a scatterplot.

Page 35: “ Dotting The Dot Map, Revisited ”

Step 3. Import the scatterplot into Freehand and change the dots to the desired diameter.

Page 36: “ Dotting The Dot Map, Revisited ”

Step 4. Wrap the dots around the four edges.

Page 37: “ Dotting The Dot Map, Revisited ”

Step 5. Import the graphic into Photoshop and crop the edge dots.

Page 38: “ Dotting The Dot Map, Revisited ”

Step 6. Use the histogram tool to find the proportion of the square covered by dots.

Page 39: “ Dotting The Dot Map, Revisited ”

I made these dot proportion measurements for the number of dots predicted at different point sizes for 10 - 50% dot overlap.

Page 40: “ Dotting The Dot Map, Revisited ”

How close did the measured aggregate areas match those predicted from the Unification Equation?

Page 41: “ Dotting The Dot Map, Revisited ”

I tested the equation for 10% overlap of 3 pt dots –55 random dots.

Page 42: “ Dotting The Dot Map, Revisited ”

I also made a Dot Selection Guide based on aggregate dot area.

Page 43: “ Dotting The Dot Map, Revisited ”

What is the problem with random dot placement?

Cartographers place dots manually in a pseudo-random fashion!

Page 44: “ Dotting The Dot Map, Revisited ”

Let’s look at pseudo-randomness in terms of maximum allowable overlap of individual dots…

200 dots are placed in each square

Page 45: “ Dotting The Dot Map, Revisited ”

2212 421

22 dRd

RdcosRAreaLens −−⎟⎠⎞

⎜⎝⎛= −

Individual dot overlap is computed from the lens area equation.

Page 46: “ Dotting The Dot Map, Revisited ”

Graphing the lens area equation shows the non-linear relationship between the spacing of dotcenters and the proportion of a dot overlapped by the lens.

example, 2 dots spaced at 1.4 times their radius will overlap by

0.2 (20% of the dot area)

Page 47: “ Dotting The Dot Map, Revisited ”

This information is the basis for a pseudo-random dot generator.

1. Select a dot radius and maximum dot overlap.

2. Generate the first random dot position.

3. For succeeding dots, compute the distance between the dot center and all other dot centers.

4. If all distances are greater than d, add the dot to the array of dots – otherwise, discard the dot position and generate another random position.

5. Repeat until the number of dots you need is generated, or until a maximum number of tries is reached.

Page 48: “ Dotting The Dot Map, Revisited ”

• I wrote a C program to run the procedure 30 times for 10%, 20%, and 30% maximum individual dot overlaps, in steps of 25 or 50 dots with a maximum of 32,000 tries for each run.

• Once I had a pseudo-random dot position array, I could check the distance of each dot against all other dots, and compute the lens area if a dot was less than a dot diameter away.

• Summing the lens areas gave the total dot overlap area, and hence the aggregate proportion or percentage covered by dots, assuming that there were no triple dot overlaps.

The procedure…

Page 49: “ Dotting The Dot Map, Revisited ”

………………

maximum aggregate area reached in less than

32,000 tries

1 pt dots

Page 50: “ Dotting The Dot Map, Revisited ”

What is happening with mutually exclusive dot placement?

“rigid random packing” for 1 pt dots in a 1 x 1 cm square

Page 51: “ Dotting The Dot Map, Revisited ”

Do the graphs for 1.0 pt to 2.5 pt dots look similar?

Page 52: “ Dotting The Dot Map, Revisited ”

Aggregate area equations…

( ) ( ) ( ) ( )101032

10101

3322p

!n!!n...p

!n!!np

!n!!nnpArea

−−+−

−+

−−=

Mutually exclusive dots:

Totally random dots:

My guess is that the equation for intermediate pseudo-random dots is a linear combination of the two bounding equations above.

npArea =

Page 53: “ Dotting The Dot Map, Revisited ”

( ) ( ) ( ) ( ) ( ) )p!n!

!n...p!n!

!np!n!

!nnp(kknpArea 101032

10101

33221

−−+−

−+

−−−+=

( ) ( ) ( ) ( ) ( ) )p!n!

!n...p!n!

!np!n!

!n(knpArea 101032

10101

33221

−−+−

−+

−−−+=

or

where k ranges from 0 (totally random) to 1 (mutually exclusive).

A general aggregate area equation…

Page 54: “ Dotting The Dot Map, Revisited ”

Guesses as to what k is proportional to?

totallyrandom

mutuallyexclusive

1. k = 1.0 - lens proportion

2. k = d/2

Page 55: “ Dotting The Dot Map, Revisited ”

The second possibility for k fit the data better –about twice as good a fit.

Page 56: “ Dotting The Dot Map, Revisited ”

Average values for a number of tries of 30 runs of creating pseudo-random are plotted on these graphs.

1 pt dot example

Page 57: “ Dotting The Dot Map, Revisited ”

From these values we can make a pseudo-random dot selection guide.

Page 58: “ Dotting The Dot Map, Revisited ”

Pseudo-random placement of 1 pt dots with less than 5,000 tries…

Page 59: “ Dotting The Dot Map, Revisited ”

Pseudo-random Dot Selection Guide for 1 pt dots with variable maximum dot overlap…

Page 60: “ Dotting The Dot Map, Revisited ”
Page 61: “ Dotting The Dot Map, Revisited ”
Page 62: “ Dotting The Dot Map, Revisited ”
Page 63: “ Dotting The Dot Map, Revisited ”
Page 64: “ Dotting The Dot Map, Revisited ”
Page 65: “ Dotting The Dot Map, Revisited ”

mappingcenter.esri.com → Other Resources