Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Nov 14, 2020
Aug 7, 2019
Mar 13, 2019

README.md

RStudio Cheat Sheets

The cheat sheets make it easy to learn about and use some of our favorite packages. They are published in their respective PDF versions here: https://www.rstudio.com/resources/cheatsheets/, some are also available in the RStudio IDE under Help-Cheatsheets.

This repository contains the source files of the current, archived and translated versions.

The cheat sheets use the creative commons copyright. Please see the LICENSE document for more details.

Translations

If you wish to contribute to this effort by translating a cheat sheet, please feel free to use the source Keynote file. To submit a translation, please use a Pull Request via GitHub or email it to us at info@rstudio.com with the subject "Translated Cheatsheet".

Tips for making a new RStudio cheat sheet

RStudio cheat sheets are not meant to be text or documentation! They are scannable visual aids that use layout and visual mnemonics to help people zoom to the functions they need. Think of cheat sheets as a quick reference, with the emphasis on quick. Here's an analogy:

A cheat sheet is more like a well-organized computer menu bar that leads you to a command than like a manual that documents each command.

Everything about your cheat sheet should be designed to lead users to essential information quickly. If you are summarizing the documentation manual, you are doing it wrong! Here are some tips to help you do it right:

Getting Started

  1. RStudio cheat sheets are hosted at https://github.com/rstudio/cheatsheets. You can submit new cheat sheets to the repository with a pull request.

  2. The files keynotes/0-template.key and powerpoints/0-template.ppt are official templates that contain some helpful tips.

  3. You may find it easiest to create a new cheat sheet by duplicating the most recent Keynote / Powerpoint cheat sheet and then heavily editing it—that's what I do!

Process

Budget more time than you expect to make the sheets. So far, I've found this process to be the least time consuming:

  1. Identify which functions to include by reading the package web page and vignettes. I try to limit my cheat sheets to the essentials.

  2. Organize the functions into meaningful, self-explanatory groups. Each group should address a common problem or task.

  3. Think about how to visualize the purpose of each function. Visual mnemonics are easier to scan than text, which all looks the same.

  4. Think about what key mental models, definitions, or explanations the cheat sheet should contain in addition to the functions. Ideally, use these to explain the visualizations.

  5. Sketch out several possible layouts for the sheet. Take care to put the more basic and/or pre-requisite content above and to the left of other content. Try to keep related content on the same side of the page. often your final layout will itself be a "mental map" for the topic of the cheat sheet.

  6. Type out all of the explanations and function descriptions that you plan to include. Lay them out. Use placeholders for the visuals. Verify that everything fits. White space is very important. Use it to make the sheet scannable and to isolate content groups. Retain white space, even if it means smaller text.

  7. Make the visuals. They take the longest, so I save them for last or make them as I do step 6.

  8. Tweak until happy.

Visual Design

  1. Use the existing theme that you see in the cheatsheets. It is cohesive and black and white printer friendly.

  2. Choose a highlight color to use throughout your cheat sheet, and repeat this highlight color in the background of the top right corner. Ideally you could find a color that is different enough from the other cheat sheets that you can quickly tell yours apart when flipping through a booklet of cheatsheets.

  3. Use a second color sparingly or not at all to draw attention to where it is needed and to differentiate different groupings of content.

  4. Include lots of white space.

  5. Visually differentiate groups of content. Backgrounds, boxes, side bars, and headers are helpful here. It is very useful for the user to know immediately where one group of content begins and where one ends. Our "gradation headers" fail here, so think of better solutions if possible.

  6. Align things to guides, i.e. align things across the page. It helps define the white space and makes the cheat more orderly and professional.

  7. Make the text no smaller than ~10pt.

  8. If the letters are white on a colored background, make the font thicker - semibold or bold.

  9. Save bold text for simple, important statements, or to draw scanning eyes to important words, such as words that identify the topic discussed. Don't make an entire paragraph bold text.

Content

  1. Include a hex sticker, IDE screenshot, or other branding material. The cheat sheets have a second function as marketing material.

  2. Include a Creative Commons Copyright to make the sheet easy to share. You'll find one baked into every cheat sheet and the template.

  3. Be very concise - rely on diagrams where possible.

  4. Pay attention to the details! Your readers sure will... so be correct.

  5. If in doubt, leave it out. There is a documentation manual after all.

  6. Code comments inform, but fail to draw the readers attention. It is better to use arrows, speech bubbles, etc. for important information. If it is not important information, leave it out.

  7. Simple working examples are more helpful than documentation details. They meet the user at his or her pain points, demonstrating code, and reminding users how to run it, with the least context shifting.

  8. Add some concise text to help the user make sense of your sections and diagrams. Images are best, but readers need to be able to interpret them.

Summary

Your cheat sheet has two goals. First, to help users find essential information quickly, and second, to prevent confusion while doing the above. Your best strategy will be to limit the amount of information you put into the cheat sheet and to lay that information out intuitively and visually. This approach will make your cheat sheet equally useful as a teaching tool, programming tool, or marketing tool.

p.s. Cheat sheets fall squarely on the human-facing side of software design. They focus on human attention. What does that mean? When you write documentation, your job is to fill in all of the relevant details—that's a software facing job, you need to know the software to do it. You assume that interested humans will find their way to your details on their own (and understand them when they do!). When you make a cheatsheet, your job flips. You assume that the relevant details already exist in the documentation. Your job is to help interested humans find them and understand them. Your job is to guide the human's attention. Don't just write, design.

About

RStudio Cheat Sheets

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.