's Avatar

@pgdataviz.bsky.social

Statistical Programmer (Epidemiologist by training) using #Rstats and #Python mostly. #DataScience #Dataviz https://pgdatavizandstats.netlify.app/

37 Followers  |  32 Following  |  53 Posts  |  Joined: 28.06.2025  |  1.9504

Latest posts by pgdataviz.bsky.social on Bluesky


Layer plot of all the sheep in new Zealand over the years

Layer plot of all the sheep in new Zealand over the years

Welsh sheep are obviously the best sheep, but the kiwis do a good sheep too

Code Here: pgdatavizandstats.netlify.app/data_visuali...

#TidyTuesday | #dataviz | #ggplot2

17.02.2026 20:38 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
>>> def add_two_nums():

num1 = input("Enter the first number you want to add:

num2 = input("Enter the second number you want to add: ")

if num1.isdigit() and num2.isdigit():

pass

else:

print("Error: One or both of the numbers you entered are not numbers. Enter a number numbskull")

sum = num1 + num2

print(f"The sum of the two numbers is: {sum}")

... add_two_nums()

Enter the first number you want to add: 6

Enter the second number you want to add: 7

The sum of the two numbers is: 67

>>> def add_two_nums(): num1 = input("Enter the first number you want to add: num2 = input("Enter the second number you want to add: ") if num1.isdigit() and num2.isdigit(): pass else: print("Error: One or both of the numbers you entered are not numbers. Enter a number numbskull") sum = num1 + num2 print(f"The sum of the two numbers is: {sum}") ... add_two_nums() Enter the first number you want to add: 6 Enter the second number you want to add: 7 The sum of the two numbers is: 67

I don't use it very often but I may have to update the "I have strong skills in python" part of the CV

11.02.2026 11:34 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Sunburst chart

Sunburst chart

Quick sunburst plot in python this morning. Better labelling of each layer would have been nice but I couldn't work it out

Code Here: pgdatavizandstats.netlify.app/data_visuali...

#TidyTuesday | #dataviz | #ggplot2 | #pydyTuesday

03.02.2026 05:57 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Just found out that pressing Tab in the Linux Terminal autocompletes the file name. So much time checking spelling and making mistakes that could not have been wasted.

02.02.2026 13:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A tree map of the various African languages

A tree map of the various African languages

Back after a nice, long, winter break. African Languages this week and a chance to try out Tree Maps

Code Here: pgdatavizandstats.netlify.app/data_visuali...

#TidyTuesday | #dataviz | #ggplot2

12.01.2026 19:20 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Flashed over Nobara during my daughter's nap. Installed like a charm and runs nicely and I've about 50 new headaches (mainly website related) to fix but

11.01.2026 12:42 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I like positron but I can't get the LaTeX compatibility to work in Quarto. I probably could but, RStudio just works, and I can't be bothered

10.01.2026 07:53 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Popped onto my Windows partition because I needed a Windows program. It decided to update itself without asking. It's now nerfed my Linux partition somehow and copilot has reactivated itself on the windows side.

Luckily everything is backed up.
It's time to wipe the laptop and go all in on Fedora

10.01.2026 07:52 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

Has flashbacks to his master's thesis they he thought would be a good idea to write in LaTeX in RStudio

20.12.2025 14:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Epidemiology Matters Epidemiology Matters offers a new approach to understanding and identifying the causes of disease -- and with it, how to prevent disease and improve human health. Utilizing visual explanations and exa...

books.google.co.uk/books/about/...

Foundational reading during my master's

20.12.2025 13:44 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

One has to ask, did they even bother with a power review?

Still the paper got traction on the BBC and other news websites and, in the end, that's all that matters

17.12.2025 19:52 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Picture of Qar-tar prices in Qatar

Picture of Qar-tar prices in Qatar

Family/Christmas/Birthday/Work means this may be the last attempt at #TidyTuesday this year. First full year doing it and enjoyed. Not sure if I got better though!

Code Here: pgdatavizandstats.netlify.app/data_visuali...

#rstats | #tidyverse | #dataviz

09.12.2025 18:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
RStudio is using 88 Gb of RAM

RStudio is using 88 Gb of RAM

The adrenaline rush I am getting right now. This must be what Base jumping is like

28.11.2025 12:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Working with datasets that definitely require the use of data.table. Genuinely very impressive package #rstats

25.11.2025 18:32 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Here's a good one. Rendering my quarto html in #positron causes loads of errors implying that quarto isn't installed correctly (I've uninstalled and reinstalled multiple times) but if render the same html in #RStudio, it renders with no drama

24.11.2025 16:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A word cloud of the words in Sherlock Holmes 

Man, one are the two biggest words

A word cloud of the words in Sherlock Holmes Man, one are the two biggest words

Tried doing a World cloud of the words in the entire Sherlock Holmes in python with a nasty head cold - can't recommend the head cold part.

Code: pgdatavizandstats.netlify.app/datavis

#PydyTuesday | #TidyTuesday | #Python

18.11.2025 05:50 β€” πŸ‘ 12    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Two area plots of TB deaths hiv versus non hiv

Two area plots of TB deaths hiv versus non hiv

This week's submission for #PydyTuesday. Missed ggplot slot when trying to make this plot

Code here: pgdatavizandstats.netlify.app/data_visuali...

#rstats | #python | #dataviz | #TidyTuesday

11.11.2025 17:20 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Sorry for the late reply, but thank you.

This is a much slicker/fancier version of what I did in the end. I will keep this for next time though!

10.11.2025 09:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I know I think it's more "honourable", if that's the right word to do it in matplotlib or seaborn. But they have ported over the best visualisation package ever created in plotnine so I'm not sure why I don't just use that

06.11.2025 18:41 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Haha tbh I'm not sure it's worth the effort. Still it's good to know the option is there

06.11.2025 16:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

My submission for #PydyTuesday. A quick jaunt back to Python and some Violin plots

Code here: pgdatavizandstats.netlify.app/data_visuali...

#rstats | #python | #dataviz | #TidyTuesday

06.11.2025 11:01 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Thank you, that did do the trick, with a lot of manually programming the x and y coordinates. Lifesaver - thank you!

05.11.2025 15:05 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
a pciture of a sankey plot

a pciture of a sankey plot

Anyone here better with the ggsankey package than I am? - I am trying to label the flow with the number of people transitioning through each stage. I have found no examples on the internet of labeling the flow (plenty labeling the nodes).

I have below what I need to try

#rstats #dataviz #ggplot2

05.11.2025 10:58 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Post image

Looked at the percentage of Oxbridge educated people who have won various British Literary Prizes for #TidyTuesday. I used ggbrick and, as the bricks of look like books, tried to make it look like they were in bookshelves with meh results.

Code here: tinyurl.com/bddsuuc3

#rstats | #dataviz

30.10.2025 09:09 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

If anybody has any good tips/resources for a statistical programmer who has a technical interview as a data scientist, let me know. I've not done one before

(Background is epidemiology and clinical trials but this would be in health data science looking at massive datasets)

#rstats #datascience

23.10.2025 20:06 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thanks. It appears so, I didn't plan on it :)!

23.10.2025 14:11 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Graph of Average Rainfall and Sunshine

Graph of Average Rainfall and Sunshine

Graph of Average Min and Max Temp

Graph of Average Min and Max Temp

As a Welshman, taking the opportunity to ignore the English and focus only on Wales for #TidyTuesday. Looking at the average weather for Wales in 2024 and now I've made myself homesick.

Code here: pgdatavizandstats.netlify.app/data_visuali...

#rstats | #dataviz

23.10.2025 05:56 β€” πŸ‘ 11    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Access to Safely Managed Drinking WAter

Access to Safely Managed Drinking WAter

It's Monday which mean my chaotic self is submitting last weeks #TidyTuesday. I chose to look at water access as most people had looked at food in much nicer ways than me.

Code here: pgdatavizandstats.netlify.app/data_visuali...

#rstats | #dataviz

20.10.2025 17:36 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A table showing the winners of the European Basketball League

A table showing the winners of the European Basketball League

Holiday and job-hunting sucking my soul mean I am a week behind and needed to do a(nother) rush job for #TidyTuesday. I have been playing with Reactable though

Code here: pgdatavizandstats.netlify.app/data_visuali...

#rstats | #dataviz

14.10.2025 10:58 β€” πŸ‘ 7    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thank you. I would love to be able to "render" the pdf like you can in RStudio.

I'll have a look. Thanks again

01.10.2025 08:37 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@pgdataviz is following 20 prominent accounts