Verify that you’ve completed these steps before moving on!

This short demo will get you started with working with visualizations in an RMarkdown file. In order for this demo to work, you need to have the tidyverse package installed. If you don’t remember if you’ve installed it, open your Console window and run:


If you don’t get an error message, then you have the package installed. If you do get an error, run the following in your Console window to install it:

install.packages("tidyverse", repos = "")

It will take a few moments for the install to be completed. If it completes without error, move on to the next section. If you encounter errors and cannot resolve them, post on Slack for help.

Interactive RStudio

RStudio can be used to run code blocks interactively and display the results, allowing you to preview what your knitted file will look like. You have two easy methods available to you for running the code in a code block. The graphical way is to click the green arrow located on the far-right side of a code block. The keyboard shortcut is place your cursor inside the block and then press CTRL SHIFT ENTER all together. The image below illustrates: