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...
Posts by Peter Gray
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
I use ctrl + shift + m but have it set to the "old" pipe anyway
Sitting in a meeting internally shouting "Real world data won't solve all your problems"
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
Heatmap of Temperatures in Nova Scotia Ocean
Quick Heatmap #TidyTuesday #PydyTuesday
Code here: pgdatavizandstats.netlify.app/data_visuali...
It's my fault..I had a new year's resolution to build a home server
With RAM and SSD prices as they are? This old girl has to keep going a while yet ๐
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
"near line xyz"
Cheers for that. Really helpful
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
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...
So I says "Data scientist, data analyst statistician"
THEY ALL WIND UP spending Their life data cleaning in THE END."
I'd say it's 80% of my job
#rstats #datascience
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...
Can't spell Tuesday either. Having a nightmare
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...
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
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...
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
Everyone fighing over TIbble versus DF >| vs %>% Me: googling what mean means
Me? I'm just happy to be here #rstats
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
>>> 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
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
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.
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
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
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