0% found this document useful (0 votes)
48 views

WS1 Making Basic Graphs Instructions

The document provides instructions for installing R and RStudio. It then outlines an assignment where the user will create various graphs like scatter plots, line graphs, bar graphs, histograms, box plots and function plots by following recipes in an R graphics textbook. The user is asked to capture screenshots of each graph and compile them into a Word document to submit.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

WS1 Making Basic Graphs Instructions

The document provides instructions for installing R and RStudio. It then outlines an assignment where the user will create various graphs like scatter plots, line graphs, bar graphs, histograms, box plots and function plots by following recipes in an R graphics textbook. The user is asked to capture screenshots of each graph and compile them into a Word document to submit.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

If you have not installed R and RStudio, you need to do that first by

following these initial instructions. Otherwise, skip this step and go to


ASSIGNMENT.

Installation of R and RStudio


Use the following article link with directions for installing R and R Studio for your operating system.

Install R and RStudio - A Step-by-Step Guide for Beginners - TechVidvan

You can place a shortcut on your desktop for RStudio. This next link is a video to show how to install R
and RStudio.

How to download and install R and RStudio - YouTube

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.

The RStudio icon on your desktop might look like:

You can also launch RStudio from the taskbar if you placed it there.

The following video explains the 4 windows in RStudio:

RStudio for the Total Beginner - YouTube


ASSIGNMENT
You will be creating these graphs:

- 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.

In RStudio, you type and 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.

You might also like