|
Hey folks, We had a lot of fun last week with my first workshop on the theory of data visualization! If this is something that you’d be interested in participating in let me know. At this point, I don’t have anything scheduled. So, if you have suggestions for days or times, please let me know This week I have a fun figure to share with you from a paper recently published in Nature Microbiology, titled, “Candida auris skin tropism and antifungal resistance are mediated by carbonic anhydrase Nce103”. Figure 2a caught my eye If you’re a microbiologist, you might notice that it resembles a microtitre plate that are often used for performing antibiotic susceptibility testing in solution. For the uninitiated, imagine you have a 96-well plate. Each column has a different step in a dilution series of antibiotic added to growth media. In this case there are 2-fold dilutions of Amphotericin B applied across the columns. All columns of a given row are inoculated with a different strain of bacteria. After incubating the plate you can score the dilution where bacteria stop growing. This is the “minimum inhibitory concentration” or “MIC”. You can see an example of this as performed on agar in panel e of this figure. The method used by these authors allowed them to score the amount of growth relative to the column with no antibiotic added. As I mentioned, if your eyes look like mine, you can see this looks like a microtitre plate. How would we make this in R? Well, if your eyes look like mine, this panel resembles a heatmap. Instead of having rectangular tiles, this panel has circles that are filled according to the relative growth level. As an added wrinkle, this experiment incubated the assay at three different CO2 levels making for three facets across the panel. Thankfully, the authors made their data available as a Microsoft XLSX workbook. If you open tab “F2A”, you’ll see the data for this figure. The data frame is already “tidy” with columns for the strain, amount of antibiotic, CO2 concentration, and relative growth. As we’ve seen in recent videos, we can read these workbook pages in to R using the From here I think it is relatively straightforward to create the basic figure. On the x-axis we map the concentration of the antibiotic. On the y-axis we map the strain. We would then map the relative growth to the fill color. We can use I feel like another unique element of the figure are the text elements. First, consider the legend. The title is rotated. I think this can be done using the Finally, I’d be chickening out if I didn’t mention the vertical lines between the three facets. I feel like we’ve done something like this in the past using What do you think? Can you pull this off on your own? Give it a try! I’ll be recreating it along with some tweaks to make it better (IMHO) next Wednesday during a livestream on YouTube. Also, stay tuned for Monday when I’ll release a critique of this plot discussing what I like or don’t like.
|
Hey folks, If you missed it, on Wednesday I did a livestream where I made a stacked barplot and pronounced it good. No, I wasn’t drinking anything! But it’s a reminder to think about the question before finding the best data visualization strategy. I think this highlights the value of the constructive approach I’ve been trying to take to critiquing data visualizations. The first steps are to establish the question and figure out the question. If you aren’t a “regular”, I think you’re really...
Hey folks, As I mentioned last week, I’m exploring the possibility of holding live, in person, workshops again like I did before the pandemic. If this is something that interests you, please let me know. My thought would be to hold them at an affordable hotel near the Detroit airport (DTW). But, if you would like to host me to teach a workshop, I would be open to that as well. This week, I want to call your attention to a plot that I would not encourage you to make. This comes form “Targeted...
Hey folks! I’m hoping to host two workshops in March and April. The first would be a Zoom-based workshop on the principles of data visualization (I taught a version of this last month). This would be a code-free workshop and would run for about 3 hours. I don’t have a date yet. If you are interested, please reply to this email and let me know if there is a date and time in March that would work best for you. The second would be an in person 3 day workshop taught near the Detroit airport. I...