Recreating YouGov Visualisations with plotnine #987
jack-davison
started this conversation in
2025 Plotnine Contest
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Plot
➡️ View the submission at: https://jack-davison.github.io/posit-plotnine-contest-2025/
This submission includes many recreations of YouGov graphics. The two nicest, I think, are:
Authors
Jack Davison
Links
bluesky, linkedin, github
Full description
This submission includes attempted one-to-one recreations of the visualisations in "Net favourability gap between Conservatives and Labour smallest in nearly four years" in Python and plotnine, originally published by Dylan Difford, a Junior Data Journalist at YouGov, on August 19, 2025. This submission shows how examples of effective data visualisation found "in-the-wild" can be recreated with the plotnine package. It also contains some surprises I found and reflections I had as an R user who only infrequently works in Python.
Code repository
🗃️ Repository: https://github.com/jack-davison/posit-plotnine-contest-2025
📃 Quarto Doc (plots): https://jack-davison.github.io/posit-plotnine-contest-2025/
Beta Was this translation helpful? Give feedback.
All reactions