Advertisement ยท 728 ร— 90

Posts by Peter Gray

TidyTuesday (2026) Week 16: Global Health Spending

For this week's #TidyTuesday, I have messed around with #Shiny for the first time in a while. #rstats

App Here:
eh1prp-dwyfor16.shinyapps.io/Global_Healt...

Code Here:

pgdatavizandstats.netlify.app/data_visuali...

1 day ago 2 0 0 0

I'm on the very skeptical side of the AI hype train but, because my boss/colleagues have been asking Claude to build SQL queries forwarding them on to me - that don't actually do what we need them to do and are full of errors- I've had to learn SQL to do it properly. So, it's helped that way #rstats

1 day ago 3 0 0 1

I use ctrl + shift + m but have it set to the "old" pipe anyway

1 week ago 2 0 0 0

Sitting in a meeting internally shouting "Real world data won't solve all your problems"

1 week ago 1 0 0 0
A waffle plot

A waffle plot

Waffle chart this week. Had a time adding the logos to the char but I got there in the end.

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

#TidyTuesday #PyDyTuesday #Dataviz #rstats

2 weeks ago 5 0 0 0
2 weeks ago 0 0 0 0
Heatmap of Temperatures in Nova Scotia Ocean

Heatmap of Temperatures in Nova Scotia Ocean

Quick Heatmap #TidyTuesday #PydyTuesday

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

2 weeks ago 3 0 0 0

It's my fault..I had a new year's resolution to build a home server

3 weeks ago 0 0 0 0

With RAM and SSD prices as they are? This old girl has to keep going a while yet ๐Ÿ˜‚

3 weeks ago 0 0 1 0
Advertisement
Video

Let's try this again

What do the first 1000 digits of pi look like (I couldn't do 1 million because I prefer my laptop unmelted)

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

#rstats #TidyTuesday

3 weeks ago 5 0 1 0

"near line xyz"

Cheers for that. Really helpful

4 weeks ago 0 0 0 0

Having spent the last two Working/Learning to code in SQL. May I be forgiven for ever complaining about an Error message ever unclear.

May as well write them in Sanskrit

4 weeks ago 1 0 1 0


subgroup = "BRAF spec



TT_tte_TNTT_BRAF <- F

subgroup = "BRAF spec TT_tte_TNTT_BRAF <- F

Hmmm... The variable name needs more T's

#rstats

1 month ago 3 0 0 0

The other 20% is explaining why projects are behind because I'm debugging my colleagues scripts that they just fed an SAP into an AI and asked it to generate the R script for them...

1 month ago 0 0 0 0
So I says

"Data scientist, data analyst statistician"

So I says "Data scientist, data analyst statistician"

THEY ALL WIND UP spending
 Their life data cleaning in THE END."

THEY ALL WIND UP spending Their life data cleaning in THE END."

I'd say it's 80% of my job

#rstats #datascience

1 month ago 4 0 1 0
A bar chart showing that likligood meaning decreases with education level

A bar chart showing that likligood meaning decreases with education level

#TidyTuesday

Looks like Postgrads are the most pessimistic in terms of accepting the likelihood of something actually happening. Which, TBF, 100% tracks with my experience of working with postgrads.

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

1 month ago 0 0 0 0

Can't spell Tuesday either. Having a nightmare

1 month ago 0 0 0 0
A graph

A graph

Very bad with these when compared with last year but here's my #TidyTuesday / #PydyTuesfay for tortoises

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

1 month ago 0 1 1 0
1 month ago 0 0 0 0
Advertisement

A very disheartening aspect of my job is, when asking experienced colleagues for help with my analysis or debugging , is they'll either tell me to "chat with the AI" or send me a link to a chat they've been having with an AI. Not exactly conducive to my learning. #rstats

1 month ago 0 0 0 0
Preview
OpenSAFELY news: you can apply to do non-COVID research, from today! | Bennett Institute for Applied Data Science We are delighted to announce that - from today - you can submit applications to the OpenSAFELY service for non-COVID-19 studies.

OpenSAFELY is open from today! Huge thanks to all who supported this vast collaboration: whole population GP data; in a productive platform; innovative privacy protections; unprecedented support from professions, privacy campaigners; &c

Now it's over to users!

www.bennett.ox.ac.uk/blog/2026/02...

1 month ago 183 87 6 18

To be Honest. If I did want to stir it up.

I much prefer for loops to lapply. They're easier to follow if you're looking at an old script you didn't develop yourself.

Caveat - most of my data is ADAM clinical trial data so its relatively small.

Caveat 2: Just do whatever works best for you

1 month ago 12 1 0 2
Everyone fighing over TIbble versus DF 

>| vs %>%

Me: googling what mean means

Everyone fighing over TIbble versus DF >| vs %>% Me: googling what mean means

Me? I'm just happy to be here #rstats

1 month ago 129 23 3 1
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

2 months ago 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

2 months ago 1 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

2 months ago 1 0 0 0
Advertisement

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.

2 months ago 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

3 months ago 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

3 months ago 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

3 months ago 2 0 0 0