Skip to content

Commit e3cf88e

Browse files
committed
Investigate registration-impound breed mismatches, add license, expand readme
1 parent 72fe859 commit e3cf88e

15 files changed

Lines changed: 2448 additions & 71 deletions

File tree

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2026 Thomas Edward Saunders
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

R/functions.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# Standardise breed strings by swapping "Last, First" to "First Last"
2-
clean_breed_names <- function(data, columns) {
3-
data |>
4-
mutate(across(all_of(columns),
5-
~ stringr::str_replace(.x, "^([^,]+),\\s*(.*)$", "\\2 \\1")))
6-
}
7-
81
# Group by a variable, count, and add a proportion column
92
calc_proportions <- function(data, group_var, count_name = "n") {
103
data |>

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,15 @@
22

33
A project to analyse and visualise data on dogs in Auckland using data compiled by Auckland Council's Animal Management division.
44

5-
Note: A [bug](https://github.com/quarto-dev/quarto-cli/issues/12360) in Quarto means figures are not currently displayed within the rendered notebooks, but they are displayed when embedded into the manuscript.
5+
### Data Sources
66

7+
Data is drawn from:
8+
9+
1. [{akldogs}](https://tesaunders.github.io/akldogs/): An R package containing raw datasets relating to registrations, impounds, and requests for service obtained from Auckland Council's Animal Management division via an official information request.
10+
2. Data compiled from summary statistics provided in Auckland Council's [Animal Management annual reports](https://www.aucklandcouncil.govt.nz/en/plans-policies-bylaws-reports-projects/our-policies/policy-on-dogs.html) which goes back further than the data in {akldogs}. This is within the `/data` folder, and prefixed with `am-reports`.
11+
3. Territorial Authority Local Board shapefiles provided by [Stats NZ](https://datafinder.stats.govt.nz/layer/120947-territorial-authority-local-board-2025-clipped/).
12+
4. Auckland population data taken from the 2023 Census provided by [Stats NZ](https://figure.nz/chart/bSr6yQmn9V9BFrXK).
13+
14+
### Project Organisation
15+
16+
This project is set up as a Quarto manuscript with project settings defined in [quarto.yml](quarto.yml). Data cleaning and analysis happens within [notebooks/data-analysis.qmd](notebooks/data-analysis.qmd) while geospatial analyses happen in [notebooks/mapping.qmd](notebooks/mapping.qmd). The [R](R) directory contains [functions.R](R/functions.R) and [theme.R](R/theme.R), holding custom functions and theming information which is used by the notebooks. Outputs from the notebooks are embedded into the manuscript file [index.qmd](index.qmd).

_freeze/notebooks/data-analysis/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
251 Bytes
Loading

_freeze/notebooks/mapping/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

_freeze/notebooks/mapping/figure-html/map-regions-boards-1.png renamed to _freeze/notebooks/mapping/figure-html/fig-regions-boards-1.png

File renamed without changes.
-22.3 KB
Binary file not shown.
-23 KB
Binary file not shown.

index.qmd

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ Recent media reports have drawn attention to dog attacks on other animals: from
3838

3939
The Dog Control Act 1996 [@departmentofinternalaffairs1996] defines the obligations of dog owners, which include registering their dog, controlling their dog at all times, and ensuring their dog "does not injure, endanger, intimidate, or otherwise cause distress to any person." The Act also lays out the functions, duties, and powers of territorial authorities, which include minimising the dangers presented by dogs in the community and ensuring the public can "use streets and public amenities without fear of attack or intimidation by dogs." Auckland Council's approach to dog control is set out in it's Dog Management Bylaw [@aucklandcouncil2025a] and Policy on Dogs [@aucklandcouncil2025b]. Auckland Council's Animal Management division has around 150 permanent staff, including five area-based field teams (Central, East, North, South and West), a regional Barking and Registration team, a Proactive team, four animal shelters (Henderson, Manukau, Silverdale, and Pukekohe), a Veterinary Services team, and management, legal, and operational support staff.
4040

41-
Territorial authorities are required to collect and publish data relating to dog control policies and practices. Auckland Council's Animal Management division publishes a high-level summary of selected data in it's annual reports. I made a request under the Local Government Official Information and Meetings Act 1987 [@departmentofinternalaffairs1987] on 20 November 2025 for the full dataset compiled by the Council, which was fulfilled on 18 December 2025 (request #8140017948). The raw data is available as an R package called `akldogs`[@saunders2026], and the data is also available as cleaned .csv files in the package's [GitHub repository](https://github.com/tesaunders/akldogs/tree/main/data-raw). I also compiled data from Auckland Council Animal Management annual reports going back to FY2016, and this data can be found [here](/data). Below is an exploration of both data sources to understand Auckland's dog population and it's management.
41+
Territorial authorities are required to collect and publish data relating to dog control policies and practices. Auckland Council's Animal Management division publishes a high-level summary of selected data in it's annual reports. I made a request under the Local Government Official Information and Meetings Act 1987 [@departmentofinternalaffairs1987] on 20 November 2025 for the full dataset compiled by the Council, which was fulfilled on 18 December 2025 (request #8140017948). The raw data is available as an R package called `akldogs`[@saunders2026], and the data is also available as cleaned .csv files in the package's [GitHub repository](https://github.com/tesaunders/akldogs/tree/main/data-raw). I also compiled data from Auckland Council Animal Management annual reports going back to FY2016, and this data can be found [here](/data). Below is an exploration of both data sources to understand Auckland's dog population and it's management. All years are financial years (1 July prev - 30 June current).
4242

4343
## Auckland Dog Population
4444

45-
There were 131,123 known dogs in the Auckland region as at FY2025. As the dog population has increased, rates of registration and desexing have fallen. The proportion of dogs classified as 'menacing' under the Dog Control Act 1996, either due to their breed or behaviour, has doubled since 2016 to 1 in 20 dogs. A drop in the recorded dog population in 2018 was due to the removal of duplicate entries in the Auckland Council dog database, and in 2025 was due to the updating of the database during a registration campaign.
45+
There were 131,123 known dogs in the Auckland region as at 2025. As the dog population has increased, rates of registration and desexing have fallen. The proportion of dogs classified as 'menacing' under the Dog Control Act 1996, either due to their breed or behaviour, has doubled since 2016 to 1 in 20 dogs. A drop in the recorded dog population in 2018 was due to the removal of duplicate entries in the Auckland Council dog database, and in 2025 was due to the updating of the database during a registration campaign.
4646

47-
{{< embed notebooks/data-analysis.qmd#ownership-trends >}}
47+
{{< embed notebooks/data-analysis.qmd#tbl-ownership >}}
4848

4949
Over 200 breeds are represented in the Auckland dog population. Labrador Retrievers remain the most popular at 11% of the Auckland dog population, with the top 10 also including the Staffordshire Bull Terrier and American Pit Bull Terrier, both automatically classified as 'menacing' under the Dog Control Act 1996.
5050

51-
{{< embed notebooks/data-analysis.qmd#top-breeds >}}
51+
{{< embed notebooks/data-analysis.qmd#tbl-top-breeds >}}
5252

5353
## Dog Attacks
5454

@@ -62,39 +62,37 @@ When Auckland Council Animal Management officers impound a dog because it has at
6262

6363
The rate of impounds per 1,000 dogs in the population reached 77.9 in 2025, the highest ever.
6464

65-
{{< embed notebooks/data-analysis.qmd#impound-rate >}}
65+
{{< embed notebooks/data-analysis.qmd#tbl-impound-rate >}}
6666

6767
The rate of impounds differed markedly by breed, with a 3 times difference even within the top 10.
6868

69-
{{< embed notebooks/data-analysis.qmd#impounds-breed >}}
69+
{{< embed notebooks/data-analysis.qmd#tbl-impounds-breed >}}
7070

7171
The proportion of impounded dogs that were euthanised was steadily dropping between 2014 and 2021, when it reached a low of 21.7%. However, since then it climbed dramatically to reach 60.8% in 2025.
7272

7373
{{< embed notebooks/data-analysis.qmd#impound-outcome >}}
7474

75-
Most seized or uncollected dogs were euthanised because they failed a temperament test (50.1%), and were therefore unsuitable for adoption. But a quarter of euthanised dogs were put down because the animal shelter was full.
75+
Most uncollected dogs were euthanised because they failed a temperament test (50.1%), and were therefore unsuitable for adoption. But a quarter of euthanised dogs were put down because the animal shelter was full.
7676

7777
Some dog breeds were significantly over-represented in euthanised dogs compared to the overall dog population. For example, Staffordshire Bull Terriers made up just over 6% of the dog population in 2024, but accounted for just over 30% of euthanised dogs in animal shelters. On the other hand, breeds like Labrador Retrievers were under-represented, making up just over 11% of the population but accounting for under 8% of euthanised dogs.
7878

7979
{{< embed notebooks/data-analysis.qmd#euth-breed >}}
8080

81-
## Compliance
82-
83-
The number of infringements issued by Animal Management officers under the Dog Control Act 1996 tripled between 2024 and 2025, from 6,387 to 17,430, the majority of which were failure to register a dog. Despite this, the number of prosecutions and appeals brought by Animal Management has dropped from around 197 in 2016 to 141 in 2025.
81+
The number of infringements issued by Animal Management officers under the Dog Control Act 1996 tripled between 2024 and 2025, from 6,387 to 17,430. The majority were issued for failing to register a dog. Despite this, the number of prosecutions and appeals brought by Animal Management has dropped from around 197 in 2016 to 141 in 2025.
8482

8583
## Regional Statistics
8684

87-
Auckland's 21 Local Boards can be grouped into 5 regions (north, south, east, west, central).
85+
Auckland's 21 Local Boards can be grouped into 5 regions (North, South, East, West, and Central).
8886

89-
{{< embed notebooks/mapping.qmd#map-regions-boards >}}
87+
{{< embed notebooks/mapping.qmd#fig-regions-boards >}}
9088

91-
Regional dog population.
89+
Most known dogs are found in the north, and the fewest are in the east.
9290

93-
{{< embed notebooks/data-analysis.qmd#region-pop >}}
91+
{{< embed notebooks/data-analysis.qmd#tbl-region-pop >}}
9492

9593
Between 2021 and 2025, all Local Board areas experienced an increase in their dog population. While the median increase was 9%, Māngere-Ōtāhuhu and Ōtara-Papatoetoe Local Boards had significantly higher growth based on an analysis of the interquartile range.
9694

97-
{{< embed notebooks/data-analysis.qmd#board-pop >}}
95+
{{< embed notebooks/data-analysis.qmd#tbl-board-pop >}}
9896

9997
Local Board areas differed greatly on rates of registration, desexing, dogs classified as menacing or dangerous, and the proportion of owners with a Responsible Dog Owner Licence.
10098

0 commit comments

Comments
 (0)