If you want to use R Markdown to prepare research papers and presentations, you need to learn how to cite references and include a bibliography. This is a nice introduction and shows the variety of options at your fingertips. Continue reading
This is actually a nice “peek under the hood” approach with lots of practical advice about getting that last tweak in to make your results go from good to great. Continue reading
You can incorporate very nice looking mathematical formulas in R Markdown fairly easily. The system relies on LaTeX for displaying formulas and is surprisingly easy to learn. But every once in a while you want to do something a bit exotic, like placing a “hat” in your equation. I’ve typically just done a quick Google search on something like “LaTeX hat symbol” and each different search yields a different website. Recently, I stumbled up a fairly comprehensive guide to displaying mathematical formulas in LaTex. It is published as an eBook.
Note: Some of the examples require additional libraries like amsmath and I haven’t figured out yet how to take advantage of these libraries in R Markdown. Continue reading
I use R Markdown for a lot of things, but the one thing that never seems to come out the way I like is the tables. This vignette highlights some of the ways you can customize the appearance of your tables with a new pacakge, kableExtra. Continue reading
I have been constructing most of my recent presentations to R Markdown. This includes presentations that have little or no R code in them. I like using R Markdown because you are manipulating simple text files. This makes it easy to use version control, among other things.
There’s a new package, which I have not tried yet, that will do a direct translation of a PowerPoint file into R Markdown. It uses a presentation format (xaringan) that I personally do not like, but it should be pretty easy to switch from xaringan to a different format like ioslides. The package owner warns that you will probably have to tweak the resulting R Markdown code to get it perfect, but the package should do “get you about 90% of the way there for about 80% of use cases.” That’s still a huge time savings. Continue reading
Microsoft Excel is very popular, but it has many serious limitations. This article explains what you lose out on if you rely just on Excel and what additonal capabilities that R and Python offer that allow you to do better work and do it more efficiently. Continue reading
This is a 42 minute presentation that covers the basics of using R Markdown to produce PowerPoint files. It touches on another couple of RStudio products: R Studio Connect and Shiny. This covers a lot of customizations issues. Also see Rendering PowerPoint Presentations with RStudio. Continue reading
When you are using R Markdown to create various documents, you are often interested in displaying any informative messages that appear along the way. This is especially true for documents you plan to use yourself. But when you are preparing a report or a presentation for someone else, you may want to suppress these messages. That’s not always easy because different functions in R use different means to display messages, especially warning messages. So the option that might suppress a warning message from one function might not work for another function. Warnings when loading packages are notoriously difficult to suppress. I want to list, for my own benefit, all of the options that are available for getting R to shut the heck up. Continue reading
Anaconda provides an easy way to manage the installation of both R and Python. The R installation includes R Studio, if you want it. While the title of this blog entry mentions Biologists, the advice is useful for anyone. Continue reading
I told a story today in a webinar workshop that I thought I should get down in writing for my blog. It involves a prejudice unique among statisticians called SASism. Continue reading