← Methods 3

In-class Exercises

Part 1: Geocoding

  1. Download today's data.
  2. Open the Census Bureau's batch geocoder.
  3. Geocode the CSV file in the folder Community Health Centers named Community_Health_Centers_for_census_geocoder.
  4. Open the result in QGIS.

Part 2: Hexbins

Use hexbins to look at the density of points.

  1. Open the shapefile in Inside Airbnb.
  2. Move your project into a projection where you know the units (eg, 2263 is in feet).
  3. Use the QGIS search bar to search for Create grid.
  4. Select Hexagon for the grid type, set the grid extent to Use layer/canvas extent > Use extent from (your layer name).
  5. Set the Horizontal spacing and Vertical spacing to 1000 feet to start.
  6. Pick a suitable place to save to and create the grid.
  7. If the grid's hexagons are too large or too small, repeat the process but change the Horizontal spacing or Vertical spacing. These determine the height and width of the hexagons.
  8. Count the number of points in each hexagon and make a choropleth with the resulting layer.

Part 3: Heatmaps

Using the same points layer as last time, make a heatmap.

  1. Search for Heatmap (Kernel Density Estimation) in the QGIS search box.
  2. Set the radius to 2000 feet.
  3. Set the rows to 3000. This is the number of rows of pixels in the resulting raster. The columns should update automatically.
  4. Style the output raster with a Singleband Pseudocolor render type and select a color ramp.
  5. Create a few more heatmaps with varying radii and resolution (rows and columns).