WS1 Making Basic Graphs Instructions
WS1 Making Basic Graphs Instructions
You can place a shortcut on your desktop for RStudio. This next link is a video to show how to install R
and RStudio.
You must install R and then install R Studio which is the development environment that uses R.
This can take a while depending on the speed of downloads for your Internet connection.
You can also launch RStudio from the taskbar if you placed it there.
- scatter plot
- line graph
- bar graph
- histogram
- box plot
- plot of a function
As it states at the beginning of chapter 1 of the textbook R Graphics Cookbook, you will need to install 2
packages for most of the recipes in the cookbook to run.
install.packages(“tidyverse”)
install.packages(“gcookbook”)
Then in RStudio, you type this and run once before each R session:
library(ggplot2)
library(dplyr)
library(gcookbook)
Assignment steps:
1) Create a blank Word document called WS1_Making_Basic_Graphs.docx – this is the file you will
submit as proof that the installation worked.
2) Place your name and the date on the top of the document.
3) Section 2.1 of the textbook:
a. Type in the commands and run them to create the scatterplot.
b. Capture a screenshot of the graph and place it into the Word document.
4) Section 2.2 of the textbook:
a. Type in the commands and run them to create the line graph.
b. Capture a screenshot of the graph and place it into the Word document.
5) Section 2.3 of the textbook:
a. Type in the commands and run them to create the bar graph.
b. Capture a screenshot of the graph and place it into the Word document.
6) Section 2.4 of the textbook:
a. Type in the commands and run them to create the histogram.
b. Capture a screenshot of the graph and place it into the Word document.
7) Section 2.5 of the textbook:
a. Type in the commands and run them to create the box plot.
b. Capture a screenshot of the graph and place it into the Word document.
8) Section 2.6 of the textbook:
a. Type in the commands and run them to create the function curve plot.
b. Capture a screenshot of the graph and place it into the Word document.
9) Submit the Word document with the screenshots.