RStudio Cheat Sheets
The cheat sheets below make it easy to learn about and use some of our favorite packages. From time to time, we will add new cheat sheets to the gallery. If you’d like us to drop you an email when we do, let us know by clicking the button to the right.
R Markdown Cheat Sheet
R Markdown is an authoring format that makes it easy to write reusable reports with R. You combine your R code with narration written in markdown (an easy-to-write plain text format) and then export the results as an html, pdf, or Word file. You can even use R Markdown to build interactive documents and slideshows. (Old Version).
RStudio IDE Cheat Sheet
The RStudio IDE is the most popular integrated development environment for R. Do you want to write, run, and debug your own R code? Work collaboratively on R projects with version control? Build packages or create documents and apps? No matter what you do with R, the RStudio IDE can help you do it faster. This cheat sheet will guide you through the most useful features of the IDE, as well as the long list of keyboard shortcuts built into the RStudio IDE.
Shiny Cheat Sheet
If you’re ready to build interactive web apps with R, say hello to Shiny. This cheat sheet provides a tour of the Shiny package and explains how to build and customize an interactive app. Be sure to follow the links on the sheet for even more information.
Data Visualization Cheat Sheet
The ggplot2 package lets you make beautiful and customizable plots of your data. It implements the grammar of graphics, an easy to use system for building plots. See docs.ggplot2.org for detailed examples.
Package Development Cheat Sheet
The devtools package makes it easy to build your own R packages, and packages make it easy to share your R code. Supplement this cheat sheet with r-pkgs.had.co.nz, Hadley’s book on package development.
Data Wrangling Cheat Sheet
The dplyr and tidyr packages are built to save you time when you wrangle data. Together, they provide a complete system for reshaping, transforming, and combining data sets.
R Markdown Reference Guide
R Markdown marries together three pieces of software: markdown, knitr, and pandoc. This five page guide lists each of the options from markdown, knitr, and pandoc that you can use to customize your R Markdown documents.
These cheatsheets have been generously contributed by R Users.
Vectors, Matrices, Lists, Data Frames, Functions and more in base R by Mhairi McNeill
Environments, data Structures, Functions, Subsetting and more by Arianne Colton and Sean Chen
Basics of regular expressions and pattern matching in R by Ian Kopacka
Dutch Translations – Nederlandse Vertaling
Gern Huijberts has provided Dutch translations of the Data Wrangling, Package Development, Data Visualization, and R Markdown cheatsheets.
French Translations – Traductions Françaises
Vincent Guyader and Diane Beldame of ThinkR have provided French translations of the RStudio IDE, Data Visualization, Data Wrangling, and Shiny cheatsheets.
German Translations – Deutsch Übersetzungen
Lucia Gjeltema of Research Triangle Analysts has provided a German translation of the Data Visualization, Data Wrangling, Package Development, R Markdown and Shiny cheatsheets.
Italian Translations – Traduzioni Italiane
Angelo Salatino of Knowledge Media Institute has provided Italian translations of the Package Development, R Markdown, and RStudio IDE cheatsheets.
Japanese Translations – 日本語翻訳
Tomoaki Masuda of the MIT Sloan Data Analytics Club has provided a Japanese translation of the Data Wrangling cheatsheet. Takeshi Sasayama has provided Japanese translations of the Base R and Data Visualization cheatsheets.
Korean Translations – 한국어 로 번역
Victor Lee of xwMOOC has provided a Korean translation of the Package Development and R Markdown cheatsheets.
Portuguese Translations – tradução para português
Augusto Queiroz de Macedo has provided Portuguese translations of the Data Visualization, Data Wrangling, and RStudio IDE cheatsheets.
Spanish Translations – Traducciones en español
Frans van Dunné of Innovate Online has provided Spanish translations of the Data Wrangling, R Markdown, Shiny, and Package Development cheatsheets.
Carlos Ortega and Santiago Mota of the Grupo de Usuarios de R de Madrid have provided a Spanish translation of the Data Visualization cheatsheet.
Vietnamese Translations – Bản dịch tiếng Việt
Anh Hoang Duc and Duc Pham of RAnalytics.vn have provided Vietnamese translations of the Data Visualization, Data Wrangling, R Markdown, Shiny, Package Development, and Base R cheatsheets.
Want to contribute?
We accept high quality cheatsheets and translations that are licenced under the creative commons license. Details and templates are available at How to Contribute a Cheatsheet.