Jack Davison's Avatar

Jack Davison

@jack-davison

๐Ÿ‘‹ senior consultant, environmental data analyst, #rstats developer ๐Ÿ”— personal website: https://jack-davison.github.io/

59
Followers
259
Following
20
Posts
14.11.2024
Joined
Posts Following

Latest posts by Jack Davison @jack-davison

cc @teunbrand.bsky.social - apologies for the tag but I know you're the font of all knowledge for ggplot2! I'm not convinced what we're after is possible given how coord_radial reprojects polygons

06.03.2026 16:40 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
`geom_rect()` in `coord_radial()` appearing as perfect rectangles Hello, I'm working on translating an old package from lattice to ggplot2. One function produces plots like this: Under-the-hood there's a lot of complex trigonometry going on as this plot is act...

forum.posit.co/t/geom-rect-... - any clever #ggplot2 #rstats users want to offer some assistance with this tricky problem? I say 'tricky' - it's probably either really easy if you know how or totally impossible. Help appreciated!

06.03.2026 16:16 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

Looks great - though the dark green on light grey used for the roxygen2-style comments is really hard to read, which is a shame as that stuff is really vital to plumber2!

06.10.2025 12:05 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

#rstats #quarto - has anyone written anything on how Quarto meets (or fails to meet) modern web accessibility standards? Had a query from our digital team. I imagine some of it would be up to the user - e.g., add alt text - so my second question is there a guide "writing an accessible quarto doc?"

07.03.2025 11:40 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Recommended way to split data by a variable, apply a function, and return a bound dataframe (i.e., a non-experimental `do()` replacement) ยท Issue #7666 ยท tidyverse/dplyr Hi folks, My question hinges on this sort of situation. Obviously this example is pretty artificial, but its a situation in which you have a function which acts on a dataframe, returns a dataframe,...

#rstats #dplyr wizards - I come cap in hand in a time of need - github.com/tidyverse/dp... - something that seems like it should be quite simple but I can't work out how to achieve!

01.03.2025 08:50 ๐Ÿ‘ 3 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Parallelisation built-in to #rstats #purrr ๐Ÿ“ฆ is a total gamechanger. I've had a play this morning and it seems to "just work" effortlessly. When this lands on CRAN we'll be able to simplify so many of our packages/workflows!

07.02.2025 09:13 ๐Ÿ‘ 10 ๐Ÿ” 2 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Aha! Seemed to be an issue using "cairo" graphics devices - switching to {ragg} has sorted it

20.12.2024 17:56 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
test: don't print plots ยท davidcarslaw/openairmaps@a60ac5c mapping functions to support openair. Contribute to davidcarslaw/openairmaps development by creating an account on GitHub.


Clever #rstats #testthat people - I'm trying to write unit tests to run on GitHub Actions but seemingly any that create a plot (e.g., ggplot2) fail on MacOS, and only MacOS. Can anyone who knows more about this than me advise what could be going on? (github.com/davidcarslaw...)

20.12.2024 16:23 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Thanks Allison! ๐Ÿ˜€

25.11.2024 16:15 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Observable Framework

Honestly, I'd never used JS / Observable before, so I just worked through the docs at observablehq.com/framework/ til I got something that looked half decent, with a lot of googling! @allisonhorst.bsky.social also has a nice getting started video series: www.youtube.com/watch?v=N2qi...

25.11.2024 10:21 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

This was a wonderful thread to realise GIFs don't work on Bluesky ๐Ÿคฆ the thread looks a bit more impressive when the images move around!

24.11.2024 21:57 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I'm enjoying #observableframework for lots of reasons - I can still use #rstats to do the data loading, and create dashboards that would normally need a #shiny server but are instead totally serverless! It is also lightning quick to react to user inputs โšก

24.11.2024 21:56 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

Finally (for now!) number three is 2024/46 (iso codes). This was a quick one - just uses #ObservablePlot tree mark to create a flowchart of the three-letter iso codes. I think I'm now one week behind, so will hopefully turn my attention to 2024/47 (Bob's Burgers!) next!

24.11.2024 21:56 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

Number two is 2024/45 (democracy & dictatorship) - change the slider to see countries adopt (or abandon) democracy. This required using #leaflet in JavaScript, which I'd never done before (although I have experience with the #rstats wrapper). Also a lot of nested data/JSONs to create & filter.

24.11.2024 21:56 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

The first dashboard was 2024/44 (monster movies). Using #ObservablePlot and #arquero JS to filter data on the fly and compare data for different genres of monster movie. I've played around with both in #quarto before, so this was familiar territory.

24.11.2024 21:56 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
TidyTuesday in Observable Framework | TidyTuesday

I've been trying to learn @observablehq.com #framework through #tidytuesday. I've lagged behind a few weeks, and never posted about it on Bluesky, so here's what I've done so far! The dashboards are found at jack-davison.github.io/TidyTuesdayO..., code at github.com/jack-davison... ๐Ÿงต

24.11.2024 21:56 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 3 ๐Ÿ“Œ 0
A polar plot map, coloured by Pearson's r of two pollutants rather than the concentration of a single pollutant.

A polar plot map, coloured by Pearson's r of two pollutants rather than the concentration of a single pollutant.

Just released v 0.9.1 of our #rstats ๐Ÿ“ฆ {openairmaps}, which combines #openair with #leaflet for dynamic #airquality mapping. Lots of fixes, but main feature is allowing for "pairwise" stats in `polarMap()`. Read more about pairwise bivariate polar surfaces: bookdown.org/david_carsla...

19.11.2024 13:05 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Open to contributions if anyone's keen. I'd like to implement nicer shadows or some way to make the markers pop off the tilemaps better, but can't quite crack something that looks good.

15.11.2024 10:09 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

I wrote something #rstats a few months ago and never really plugged it. I love #leaflet, but awesomeMarkers is v limited - instead `leaf.magic::magicIcons` uses {magick} to construct icons on the fly. Totally customisable sizes/icons/colours/shapes. See more at: github.com/jack-davison...

15.11.2024 10:09 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
jack-davison - Overview Environmental data analyst. R Developer. Certified Posit Tidyverse Instructor. - jack-davison

An #introduction ๐Ÿ‘‹

I'm an environmental data analyst and R package developer, with a specialism in #airquality. Interested in #rstats, #quartopub, #shiny and, increasingly, #observable and #observableframework.

You can see a lot of my stuff on GitHub: github.com/jack-davison

14.11.2024 12:31 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0