Project 002: Calgary Housing Observatory

What does Calgary's housing market look like, community by community?

An interactive R Shiny dashboard on 21,328 Calgary residential listings, mapped onto the City of Calgary's official community boundaries. Filter by price, age, structure and bedrooms, and the map, charts and community table all update together.

The dashboard runs on Render's free tier. If nobody has opened it for a while, the first load can take about a minute.

One listings extract, official geography

Project 001 asked health-services questions of simulated hospital records. Project 002 asks a question about place: how prices, home types and the pace of sales differ across Calgary's communities.

Listings

The extract

21,328 Calgary residential listings with price, living area, bedrooms, bathrooms, year built, days on market, structure type and community. The listing's community is its MLS subdivision name.

Boundaries

The map

Polygons are the City of Calgary Community District Boundaries from the city's open data portal. Subdivision names are matched to official community names, with a 99.9% match rate.

What the dashboard shows

Filters in the sidebar (price, year built, city sector, structure type, bedrooms and community) apply to every view at once.

Overview
Headline figures for the current selection (listings, median price, median price per square foot, median days on market), a community map of median price, the price distribution, the structure mix, median price by city sector, and price against living area.
Map explorer
A community choropleth of median price, median price per square foot or listing count, a density heatmap, and community bubbles sized by listing count, over street, satellite or topographic basemaps, with a measure tool for distances and areas. Click a community to see its medians and its mix of houses, apartments and multi-family homes.
Communities
A sortable, filterable table of every community with listings: count, median price, price per square foot, living area, year built and days on market.
Notes
Where the data and boundaries come from, and how to read the map.

How it's built

A small, complete pipeline: clean once, then let a front end read the same files.

Prepare

An R script parses prices and areas, groups structure types, matches subdivisions to official communities with sf, and writes compact processed files with community-level summaries.

Explore

A Shiny app built with bslib, leaflet and leaflet.extras, plotly and DT. Every chart, map layer and table is driven by the same filtered data.

Deploy

A Docker image based on rocker/shiny, deployed as a Render web service. The static vthelab.com site links to it.

Community level by design

The source is an MLS extract, so the public dashboard only shows patterns at the community level.

  • No owner names, phone numbers, street addresses or MLS numbers are loaded into the app.
  • No parcel-level tax or assessment values, and no listing-level table or download.
  • The density heatmap places each listing at a jittered point around its community's centre, not at its parcel.

Educational use only. Listing figures describe one extract at one point in time and are not an official market report or a valuation of any property.