@appliedepi.bsky.social

Improving Applied Epidemiology worldwide. Increasing the knowledge and resources of Epidemiologists no matter who or where they are. Creator of the EpiRHandbook: https://epirhandbook.com/

🌍 Join the Board of Applied Epi! We’re seeking new Board Members passionate about global health & Epidemiology. Help guide a nonprofit that trains 1000s worldwide in data-driven public health response. ⏰ ~2 hrs/month | Apply by 31 Dec 2025 🔗 tinyurl.com/4yp5fu93

🌍 Join the Board of Applied Epi! We’re seeking new Board Members passionate about global health & Epidemiology. Help guide a nonprofit that trains 1000s worldwide in data-driven public health response. ⏰ ~2 hrs/month | Apply by 31 Dec 2025 🔗 tinyurl.com/4yp5fu93

🚨 Rare opportunity! Our advanced R courses start end of July: 📈 Time series & outbreak detection in R 📊 Intro to Stats in R 🗺️ Intro to GIS in R 🖥️ Shiny in R 📝 Advanced R Markdown Plus: Lots of Intro to R courses running all summer! 🌞 Taught live by experienced epidemiologists. 🌍 🔗 appliedepi.org

📢 Ready to move your team to R? Applied Epi’s scholarships are OPEN! ✅ Funding available for teams in LMICs ✅ Even teams of 1 can apply with leadership support ✅ Deadline: Feb 10, 2025 Why team applications? Collaboration ensures a smooth transition to R! Apply today: 🌐 appliedepi.org

Applied Epi

appliedepi.org

🚨 Applications are NOW OPEN for Applied Epi’s 2025 scholarships! 🚨 💡 For teams in low- & middle-income countries working in epidemiology, this is your chance to access funding for courses and support services that help transition to R. 🗓️ Deadline: Feb 10, 2025 🌐 Apply here: appliedepi.org

Bild

🎄 Merry Christmas Eve, everyone! 🎄 To wrap up this advent calendar, here’s our final tip: Did you know you can use your own images in ggplot? Check out this festive example with a cartoon of Santa —on his (surprisingly inefficient?) route tonight! 🎅✨ #DataViz #RStats

Today's post is for anyone with bdays this time of the year. We see you! This includes our Exec Director, an expert in "combo Xmas/bday" presents! Happy birthday Neale! 🎂 On that note, ever work with multiple date columns but need to pick one? Use coalesce() to easily prioritize a value! #Rstats

Bild

🎄Day 22: An R Christmas Tree 🎄 There's still time to write your Christmas cards! And what better captures the yuletide spirit than...R... Seriously though, check out the {christmas} package by Jose Barrera-Gomez.. Stunning!

Bild

🎄Day 21: Ggplot efficiency part 3🎄 Need many plots with the same style/formatting but slightly different inputs? 💡Create a custom ggplot function! Define your plot upfront in the function, with all the long formatting code. Then run the function for each new plot with different inputs.

Bild

🎄Day 20: Ggplot efficiency: part 2 🎄 Visualizing the same variables in different ways (e.g. sex by time/place)? 💡Tip: Easily standardize colour palettes by defining them once at the start of your code. Then reuse the palettes within scale_fill_manual() or scale_color_manual() across plots.

Bild

🎄Day 19: Ggplot efficiency: part 1🎄 Do you need a consistent plot style for a document? Try theme_set()🎨 Define the look of fonts, grid lines, backgrounds, axis text etc once inside theme_set(). This will apply to all subsequent ggplots in your R session. No need for long theme() code per plot!

Bild

🎄Day 17: RStudio magic🎄 Want to be in multiple places at once over the holidays? We can't help you with that. But - we can show you how to type in multiple places at once in RStudio! 😮 Useful when you need to make the same edit across your code but Find + Replace isn't suitable.

🎄Day 15: Quiz answers!🎄 I have possibly learned to not post R quizzes on a Saturday. Regardless! Here is why the two "ñ" characters were not the same: their underlying encoding was actually different!

🎄 Day 13: Sound alerts in R! 🎄 Ever find yourself waiting for code to finish running, only to forget and miss when it’s done? Try {beepr}! 🔔Add beep() to the end of your code, and it will ping when done 🎺Prefer a celebratory trumpet sound? Add beep("fanfare") instead! Enjoy!

🎄Day 12: Assessing missing data🎄 Epis know well that missingness can skew analyses, so needs careful review. No fear, {naniar} can help! E.g.: ☑️pct_miss_case(): to check % of rows with NAs ☑️gg_miss_var(): to quickly visualize missingness by column See more in Ch. 20 of the EpiRHandbook.com!

Bild

🎄Day 11 🎄: Multi-panel figures! The R package {patchwork} makes professional-looking multi-panel figures like this SUPER easy to do. This means more efficient story telling, saved space, and clearer comparisons between groups. #r #rstats #epi

Bild

Day 10: Code readability! Are you making life harder for yourself in R? Or are you using rainbow parentheses and highlighted functions!? Which one does your code look like?

Bild

Day 9: Where do the R version names come from? Run R.version on your console to see your version number and name. The current one is 4.4.2: “Pile of Leaves”. Internet chat suggests these names are all inspired by the Peanuts comic strip. And sure enough… #r #rstats #charliebrown #peanuts 🥜

Bild