Jonathan Marshall
banner
jmarshallnz.bsky.social
Jonathan Marshall
@jmarshallnz.bsky.social
Statistician in Papaioea, Aotearoa. #rstats, #datascience.
Finished up the kitchen. The grooved cupboards turned out pretty good and am happy with the ply mitres which wrapped pretty consistently. Ply is Keruing (Brownwood) from Plymasters.
December 14, 2025 at 4:06 AM
Reposted by Jonathan Marshall
Big new blogpost!

My guide to data visualization, which includes a very long table of contents, tons of charts, and more.

--> Why data visualization matters and how to make charts more effective, clear, transparent, and sometimes, beautiful.
www.scientificdiscovery.dev/p/salonis-gu...
December 9, 2025 at 8:28 PM
Nice, mine is basically the same but using xor() and 0/1 instead. I did every possible combination then minimised rather than building up.

For part 2 I used lpSolve but I suspect could just use lm() with a bit of care in the few cases with multiple solutions.
December 11, 2025 at 1:27 AM
Over $1k savings now in less than 6 months with the solar. Around half of that is due to export, the rest self consumption mostly by time shifting the hot water.
December 11, 2025 at 12:57 AM
Reposted by Jonathan Marshall
Wait, what?! Yesterday, it emerged that Auckland Transport plans to re-open Queen St to all night thru-traffic. Boy racers, start your engines!🏎️🏎️🏎️

But why? And who on earth asked for this? Is this Project K all over again?

@connorsharp.bsky.social has the scoop - and a campaign to restore sanity.
It's time to stand up for a better Queen Street, again! - Greater Auckland
Here we are again. For the umpteenth time, more changes are being proposed for Queen Street (and Midtown). Unfortunately, these are not good changes, and they include pouring traffic back into the sho...
www.greaterauckland.org.nz
December 9, 2025 at 9:43 PM
Reposted by Jonathan Marshall
As promised, this story has now come out from behind the paywall. Cheapskates, fill your boots. www.nzherald.co.nz/business/com...
December 8, 2025 at 9:08 PM
Reposted by Jonathan Marshall
Hey, so guess what I did? 🧵

Can I prove Deloitte used AI to write this report? No. But that would honestly be the less embarrassing option. The research in this report is below par for a 1st year undergrad, where they even bother to show research.

Let's unpack some of the mistakes I found.

#nzpol
December 8, 2025 at 11:45 PM
#rstats code in a skeet easy for day 8 of #adventofcode

raw <- read.csv('input.txt', header=FALSE)
d <- dist(raw)
h <- hclust(d, method='single')
prod(sort(table(cutree(h, h=sort(d)[1000])), decreasing=TRUE)[1:3])
prod(raw[which(as.matrix(d) == max(h$height), arr.ind=TRUE)[1,],]$V1)
December 8, 2025 at 11:05 PM
Reposted by Jonathan Marshall
if you need some help understanding or explaining why this is terrible, start here: newsletter.sachajudd.com/archive/id-p...
December 8, 2025 at 1:42 AM
Reposted by Jonathan Marshall
Ah fuck it. In an expression of my frustration at having been unable to focus on things I actually *want* to talk about, I wrapped up this little blog post about managing git/github configurations for multiple identities on the one computer. As always, read it or don't :)
Two githubs, one laptop – Notes from a data witch
Some notes on managing multiple sets of github credentials on the one machine
blog.djnavarro.net
December 7, 2025 at 9:46 PM
Reposted by Jonathan Marshall
I'm no cerealolgist, but I'm not sure if iridium offers the same benefits as iron.
December 6, 2025 at 8:06 PM
Reposted by Jonathan Marshall
A Kakīānau (black swan) living life to the fullest at Western Springs this morning. 🪶🇳🇿
December 5, 2025 at 8:05 PM
Reposted by Jonathan Marshall
Paywall lifted: A trove of briefings and Cabinet documents reveals the Govt was advised its new methane target is only consistent with warming of 2-2.7C (and possibly up to 4.5C).

Climate scientists have said 2.7C would represent 'unprecedented peril'.
newsroom.co.nz/2025/12/04/g...
Govt warned new methane target aligned with 'catastrophic' warming
Newly released documents reveal the Govt's new methane target is associated with 2.7C of warming – a level labelled 'catastrophic' by the UN.
newsroom.co.nz
December 4, 2025 at 9:42 PM
Reposted by Jonathan Marshall
Scoop: A trove of briefings and Cabinet documents released under the OIA reveals the Govt was advised its new methane target is only consistent with warming of 2-2.7C (and possibly up to 4.5C).

Climate scientists have said 2.7C would represent 'unprecedented peril'.
newsroom.co.nz/2025/12/04/g...
Govt warned new methane target aligned with 'catastrophic' warming
Newly released documents reveal the Govt's new methane target is associated with 2.7C of warming – a level labelled 'catastrophic' by the UN.
newsroom.co.nz
December 3, 2025 at 7:43 PM
Reposted by Jonathan Marshall
This composition had eluded me for nearly a decade, but yesterday I was finally able to capture it. A train rolled through just as the Duquesne Incline was crossing over the tracks in #Pittsburgh, creating a picture perfect winter scene. It was worth the hours and hours I've waited over the years.
December 3, 2025 at 2:06 PM
Reposted by Jonathan Marshall
R Dev Days Dec 16/17 at Auckland *and remote* for people interested in contributing to the code and documentation of base R, or to infrastructure that supports such contribution.

Because timezones, there are morning and afternoon streams, join either or both
pretix.eu/r-contributo...
December 2, 2025 at 6:29 PM
Reposted by Jonathan Marshall
Going to the IKEA opening? You may be thinking about going by bike 🚲

⚠️ Please be careful: it's an area for experienced bike riders, with some more dangerous areas. If you're not sure, the train is an option

If you do bike there, this map shows a good approach 💡
December 3, 2025 at 4:15 AM
Reposted by Jonathan Marshall
The statistical performance indicators data from the World Bank for 2024 has been released today, and I've been working on a little interactive explainer 📊

Check it out here: nrennie.rbind.io/statistical-...

#DataViz #ggplot2
December 2, 2025 at 11:30 PM
Reposted by Jonathan Marshall
I felt a great disturbance in the Force, as if millions of voices saying "Great thought of yours" were suddenly silenced
December 2, 2025 at 8:28 PM
Reposted by Jonathan Marshall
NZ Infrastructure Commission/ Te Waihanga invited submissions for its Infrastructure Priorities Programme…

…so @connorsharp.bsky.social smartly suggested revisiting light rail in Auckland💡

Breaking news: the proposal was “endorsed” as highlighting a pressing and solvable issue!👏🏼

What happens now?
Light Rail Lives On? - Greater Auckland
Earlier this year Te Waihanga, the New Zealand Infrastructure Commission, invited submissions for Round 2 of its
www.greaterauckland.org.nz
December 2, 2025 at 8:46 PM
Reposted by Jonathan Marshall
Lets help wind down gas in #AoNZ

“All three [gas companies] projected flat or declining net total connections to their networks, with disconnections outpacing new consumers.”

“Firstgas and Vector had urged […] a network wind-down date in the 2040s should be in the mix.”

1/2
Gas networks won't grow any larger – Commerce Commission
Gas bills will rise 8 percent over two years in Auckland, under a proposal to avoid stranded assets as gas networks consider winding down. Marc Daalder reports.
newsroom.co.nz
November 29, 2025 at 7:10 PM
Reposted by Jonathan Marshall
For those wanting to have sensible conversations about the cost of building and maintaining things, use the capital goods index in infoshare not the CPI if you want CPI equivalent discussions about how prices have risen.
December 1, 2025 at 6:28 PM
Reposted by Jonathan Marshall
The rates cap policy seems to exclude most three waters spending which is a massive carve out given it’s a big driver of local government cost inflation.
December 1, 2025 at 5:47 AM
Reposted by Jonathan Marshall
some joints for your viewing pleasure. 4 double hung sashes, recycled oregon timber cut out of an old 12"x 6" roof truss. these are constructed to suit a 24mm thick double glazing unit, replacing the original 1910 single glazed sashes. the glass weighs 23 kilos per sash.
December 1, 2025 at 5:44 AM
Reposted by Jonathan Marshall
Strong floor, no ceiling.
December 1, 2025 at 2:49 AM