Advertisement Β· 728 Γ— 90

Posts by

Post image

πŸ—£οΈ Applied Epi is hiring!

Seeking R users in public health to support epidemiologists globally in English and French, Spanish, or Portuguese, as:

πŸ”΅ Instructors: Lead online R courses
🟑 Technicians: 1-on-1 online R mentorship

Apply by April 5th: πŸ”— appliedepi.org/about/join.h...

#PublicHealth #Epi

1 month ago 3 2 0 0

🌍 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

5 months ago 1 2 0 0

🌍 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

5 months ago 1 2 0 0
join – Applied Epi

We're hiring!

Applied Epi is looking for a capable epidemiologist for a full-time 1-year remote contractor position.

Take a look at our website for more details on the role and how to apply: appliedepi.org/about/join.h...

Application deadline: July 31, 2025.

9 months ago 0 0 0 1

🚨 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

10 months ago 4 1 0 0
Post image

β€œI’ve taken several R trainings - this is the BEST!”
πŸ“’ New courses posted! Intro to R for public health
πŸ—“οΈ 40 hours part-time, synchronous, with unlimited 1-on-1 coaching and options for ALL time zones.
✏️ Register: appliedepi.org/training/pub...

1 year ago 1 3 0 0
Post image

πŸ“’ Last week to apply for the Applied Epi scholarships!

Transition your team to R with free or discounted courses and services.

Why apply?
βœ”οΈ Full or partial scholarships
βœ”οΈ Focused on strengthening public health capacity

πŸ—“οΈ Apply by Feb 10, 2025! 🌐 appliedepi.org/training/scholarships-ae

1 year ago 1 3 0 0
Advertisement
Applied Epi

πŸ“’ 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

1 year ago 3 2 0 0
Post image

🚨 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

1 year ago 5 4 0 0
Post image

πŸŽ‰ R scholarship applications open on January 20!

If your team (government or nonprofit) works in applied epidemiology in a low- or middle-income country, you could get access to our Intro to R course and Support Desk! Details: appliedepi.org/training/sch...
#Rstats #epitwitter

1 year ago 7 7 0 1

The main takeaways are:

1) Ggplot customization possibilities are pretty endless.
2) Merry Christmas and happy holidays to you all!

πŸŽ„πŸŽ„πŸŽ„

1 year ago 1 0 0 0

That code shows other cool things too, like how we added in a new font ("Grand Hotel") for the ggplot title.

We used the {showtext} package for this: font_add_google() loads the font from Google Fonts, and showtext_auto() ensures R applies the font to the plot.

1 year ago 1 0 1 0
Video

Repeatedly rerunning the code is quite fun

1 year ago 1 0 1 0
Post image

And how did we get Santa's coordinates?

Since he didn't share his location, we created a function (get_random_night_coords()) to randomly generate coordinates of a location with a current local time between 11pm and 3am, assuming those are his working hours!

Close enough!

1 year ago 2 0 1 0
Post image

Both of these figures are created with ggplot2, and use a saved PNG file of Santa.

geom_image() from {ggimage} places the image at specified coordinates, reading from the file path.

Here's the ggplot code for the second figure:

1 year ago 2 0 1 0
Advertisement
Post image

And if you want his current location:

1 year ago 1 0 1 0
Video

πŸŽ„ 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

1 year ago 3 0 1 0

coalesce() is from the {dplyr} package. It returns the first non-missing value from a set of columns, based on the order you specify.

It’s not just for dates, but for any use-case where you need to pick one value from across columns!

1 year ago 0 0 0 0
Post image

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

1 year ago 19 2 1 0

Can you recommend any other holiday or Christmas-related R packages? We'd love to know!

1 year ago 0 0 0 0
Post image

Here's the code if you like the "minimalist" aesthetic.

That said, it does show the versality of ggplot!

1 year ago 1 0 1 0
Post image

P.s. Before finding the {christmas} package I was ready to make this the main event for this post:

1 year ago 0 0 1 0
Advertisement
Post image

πŸŽ„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!

1 year ago 1 0 1 0
Preview
Custom ggplot functions! Hi all! I’m pasting in some example code to create a custom ggplot function. This example creates different epicurves using the Ebola linelist from Applied Epi’s introcourse. It allows you to defin...

And finally, if you want the function code pasted above, you can get it from the Applied Epi Community: community.appliedepi.org/t/custom-ggp...

Enjoy!

#RStats #Dataviz

1 year ago 3 0 0 0
Preview
Tidy eval helpers β€” tidyeval This page lists the tidy eval tools reexported in this package from rlang. To learn about using tidy eval in scripts and packages at a high level, see the dplyr programming vignette and the ggplot2 in...

You can make the function more complex, but don't overdo it - too many arguments could become hard to understand and edit!

It's all about balance and the best solution for your problemπŸ€“

Learn more here:
epirhandbook.com/en/new_pages...
ggplot2.tidyverse.org/reference/ti...

1 year ago 3 1 1 0
Post image

Want to further customize colours? 🎨

The example above uses the same colour palette for each plot, with scale_fill_brewer().

For custom colours, you can also define a palette inside scale_fill_manual() - or as a separate object that you refer to (as discussed yesterday).

1 year ago 1 0 2 0


Why the squiggly brackets {{x}}? πŸ€” They're for tidy evaluation!

{{ }} allows ggplot() to recognize the inputs for "xvalue" and "fillvalue" as column names from your data.

Without them, your function won’t know how to evaluate these column names properly!

1 year ago 0 1 1 0

The code defines a function for an epicurve with geom_histogram(), taking three inputs:

1️⃣dataset object name ("data"),
2️⃣column name for the x axis ("xvalue"),
3️⃣column name for the fill colour ("fillvalue").

So you can easily make epicurves with different breakdowns or date types!

1 year ago 0 0 1 0

See how short and readable the code for producing three epicurves becomes 🀩.

The function approach allows you to control data-related formatting (e.g. in the scale_* functions) AND non-data formatting (in theme()).

1 year ago 1 0 1 0
Post image

πŸŽ„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.

1 year ago 110 11 2 2
Advertisement