This spring, I'm teaching a new class on data visualization with R. I'm posting all materials as I go. Feel free to follow along. Each lecture has slides and an interactive worksheet. #rstats wilkelab.org/SDS375/syllabu…
I'm using xaringan for slides, learnr for interactive worksheets, and distill for the website. All sources are available on github. github.com/wilkelab/SDS375
I'm about a third through the semester. New postings every week! 😄
I'm also taking the opportunity to clean up the code for many of the figures in my dataviz book. Nearly all figures in the slides should be easy to reproduce and don't require any custom fonts or difficult-to-install packages only available on github.
• • •
Missing some Tweet in this thread? You can try to
force a refresh
First you subdivide all authors into two groups, people who have PI status (usually some sort of faculty member) and people who don't (grad students, postdocs, technicians, etc.). 2/n
Among the non-PIs, you sort them in order of their contribution, from most to least. 3/n
Spatial plotting just improved a lot in the development version of ggplot2. In a nutshell, you can now mix and match regular geoms with `geom_sf()` and `coord_sf()`. If you're doing any geospatial plotting, please test this out. 1/n #rstats#ggplot2
The key idea is that `coord_sf()` now has a default coordinate system that it uses for any objects that are not sf (i.e., don't come with their own coordinate information). The default is longitude/latitude, which makes it super easy to, for example, mark a specific location. 2/n
This works with essentially any geom, e.g., we can mark a couple of cities and draw an enclosing polygon. 3/n
"We have plenty of hospital bed capacity" is an awful argument for reopening in the face of a preventable infectious disease. For comparison, consider the following statements. 1/n houstonchronicle.com/politics/texas…
No need to wear a hardhat on this construction site. We have plenty of hospital bed capacity. 2/n
No need to wear a seatbelt. We have plenty of hospital bed capacity. 3/n