Incorporating logic into a visual made with R using a case_when statement (CC263)
Pat uses a case_when logic statement to construct the title of a visual he’s made in R to change with the date. Because the visual gets recreated every day, it is important for the format of the date in the title to change with the day. The overall goal of this project is to highlight reproducible research practices using a number of tools. The specific output from this project will be a map-based visual that shows the level of drought across the globe. The website we generate in this episode can be found at https://www.riffomonas.org/drought_index.
Code
You can browse the state of the repository at the