What I have learned remaking other peoples figures in R


Hey folks,

At long last the {phylotypr} R package is on CRAN! I posted a video on Wednesday describing the process of submitting the package. Then on Thursday, I submitted a manuscript to Microbiology Resource Announcements that describes the package. Hopefully, it will be published soon.

MRA is a pretty nifty journal that published short (~500 words) articles describing resources that microbiologists might find useful. There aren’t supposed to be any results, just a description of the rationale for the resource and a description. I encourage any microbiologists to use the journal as a forum for publishing data, protocols, software, etc. After many people asked me for a way to cite my YouTube Channel, last year I finally published an article describing the videos as a resource. The submission and review process was pretty straightforward. Give it a try!


You may have noticed I also posted videos on Monday and Thursday of this week that touched on the content of a previous newsletter from August 23rd. My hope is to return to posting videos twice a week. One will take the written description I’ve been narrating in the newsletter and turn that into R code. The second will be me representing the data either how I would go about doing it or trying to show off something in R. I hope to get to a point where the videos follow the newsletter by a week or two (I’m behind, so you’ll occasionally get newsletters like this one). Please let me know what you think of the new format! Also, if you have any figures - simple or complex - that you would like me to give my treatment, reply to this email with a link or a copy of the picture.

After posting two videos this week and recording two videos for next week I wanted to share two early observations.

First, I never cease to be amazed by how much I learn by producing these newsletters and videos. Teaching forces me to practice my own craft and explore parts of R that I am not familiar with already. Is there someone around you that you could teach? Even if you feel like you are just getting going with R, teach someone else what you have learned. I can guarantee you will learn what you still don’t know, you will be impressed by how much you do know, and you will be able to retrieve that information more easily in the future. If you don’t believe me, give it a try!

Second, a thought occurred to me. Why do I bother remaking other people’s figures? Take for instance this week’s video showing how to make a scatter plot. I’m fairly certain that the original figure used GraphPad Prism. It has thick lines and bold fonts. The overall appearance feels chunky to me. But by reproducing the original as faithfully as I could allowed me to get more practice with manipulating and creating axes and the text that goes with them.

In the video I worried about the points falling on top of the y-axis in the original, but behind the axis in R. I could have let that slide, but that would have been lame. Right? That forced me to consider removing the default y-axis and creating my own. Along the way, I used the clip argument from coord_cartesian() and the expand argument from scale_*_continuous(). Even if I never make this same type of y-axis again, this practice helped me get more practice with those functions and arguments. Spoiler: I use clip and expand in next week’s videos too :).

What I hope you take away from this discussion and my videos isn’t how to make a specific type of plot that suits your specific needs. Rather, I hope you learn how to use a powerful set of tools to do anything you want. I have observed many learners over the year want to know how to make a specific plot with a specific type of data. But what will that get them in 5 years when they’ve moved on to a new type of plot and a different type of data? Learn to use the tool and how its parts work. Then you’ll become a master of your craft. That’s what I want for you. I’m certain you are capable of it!

Workshops

I'm pleased to be able to offer you one of three recent workshops! With each you'll get access to 18 hours of video content, my code, and other materials. Click the buttons below to learn more

In case you missed it…

Here is a livestream that I published this week that relate to previous content from these newsletters. Enjoy!

video previewvideo previewvideo preview

Finally, if you would like to support the Riffomonas project financially, please consider becoming a patron through Patreon! There are multiple tiers and fun gifts for each. By no means do I expect people to become patrons, but if you need to be asked, there you go :)

I’ll talk to you more next week!

Pat

Riffomonas Professional Development

Read more from Riffomonas Professional Development

Hey folks, Earlier this week, those of us in the US celebrated Memorial Day. For many, this marks the unofficial start of summer. I suppose the clock is now ticking until Labor Day, which is the unofficial end of summer. Let me be the jerk to tell you that you have 100 days left to accomplish all of your summer goals. I suspect that for many of you writing papers and putting together conference posters and talks are on your list of goals. Generating attractive visualizations of your data is...

Hey folks, I’ve been getting asked to give more talks about data visualization and my experiences critiquing visualization. It’s been a lot of fun to engage with live audiences. I enjoy learning about their experiences, motivations, and limitations. As much as I love this newsletter and the content I post to YouTube, it’s clear that it isn’t a substitute to talking to people without the filter of email or a chat box. So, if you’re interested in working with me on an individual or group level...

Hey folks, The more I peruse the literature, the more I see that researchers need help designing figures to help tell their stories. I don’t just mean the mechanics of creating a figure in R, Python, Prism, or Excel. Rather, if someone had a box of dry erase markers of various colors and they had to give a talk without any slides, what would they draw to tell their story? I don’t mean to trivialize the difficulties. It’s hard! There are many figures I’ve published that I wish I could have a...