File name | File type | Size | |
---|---|---|---|
NWAlamedaCtyBGs2010.zip | Zip archive data | 1015.44 kB | Info |
onions-and-diamonds.zip | Zip archive data | 15.42 kB | Info |
Create a Word Document…
… into which you can put your work as you go along. Be sure to include enough narrative that a reader will know what you did.
Get Some Data
- Download, etc. the Onions-and-Diamonds folder.
- Add GRID, DIAMONDS, and ONIONS to a map.
- Use VECTOR>ANALYSIS TOOLS>POINTS IN POLYGON to count the number of onions in each grid square into a new shape file called OCOUNT. Repeat for diamonds into a layer called DCOUNT (see Points in Polygon tutorial if this seems mysterious).
- Join these two layers together (either can be the base of the join). Save the result as OD_Data.
- Add and remove layers so that you have this new grid with count data, the onion points and the diamond points on a map.
- Create a print composer, align things, and export image file to import into your Word document.
Dichotomize Diamond and Onion Data
- Create a new field called AnyDiamonds. Use field calculator to populate it with 1 for grid squares that have more than zero diamonds.
- Repeat for an AnyOnions field.
- Create thematic maps that show grid squares with and without diamonds and/or onions. Display them side-by-side in a print composer and export/import into your word document.
Create a "Two Dimensional" or "Bivariate" Data Field
- Now create a new field called "Nothing, Diamonds, Onions, or Both" (N_D_O_Both). Calculate it as $AnyDiamonds + 2 \times AnyOnions.$
- STOP AND THINK: what four values can this field have and what do they mean?
- Create a categorized thematic map based on this field (in some versions you might need to go back to "Old Symbology." Select the colors so that they are easy to interpret (for example, brown = neither, red = onions, blue = diamonds, violet = both) and label the legend correctly.
- Print composer and save with appropriate titles/annotations.
Simple Statistics on Your Variables
- Use VECTOR>ANALYSIS TOOLS>SIMPLE STATISTICS to get the mean, std deviation, etc. of onion counts, diamond counts. Report these.
Export to Excel and Analyze
Export CSV and import into Excel to make a scatter plot of onion counts vs. diamond counts.
Use the tools at your disposal to fill in this table:
Some Onions | No Onions | Totals | |
Some Diamonds | |||
No Diamonds | |||
Totals |
Calculate percentages. Do you see anything here?
Buffers
- Create buffers of radius 600 around diamonds and around onions. Call the layers onions600, etc.
- Save map into Word.
Intersecting Buffers
Intersecting points and polygons
Suppose you want to label point features with the ID of the polygon they lie within.
Intersect your onions and your grid and then your diamonds and your grid. This should leave you with two point layers, each with features also labeled with their grid square location (ROWCOL).
Buffers Again
Create buffers around the layers just created. Examine attributes.
Dissolving Buffers
Dissolve the buffers just created allowing features from same grid square (same ROWCOL) to dissolve. Give the shape file a sensible name.
Examine the attributes of the result.
Use the select tool to verify that some features have multiple polygons.
Create convex hulls around diamonds based on ROWCOL (the grid square ID). Repeat for onions.
File name | File type | Size | |
---|---|---|---|
NWAlamedaCtyBGs2010.zip | Zip archive data | 1015.44 kB | Info |
onions-and-diamonds.zip | Zip archive data | 15.42 kB | Info |