Homework 4

Lessons 7-8

Author

Your name here - update this!!!!

Published

October 31, 2024

Directions

Please turn in this homework on Sakai. Please submit your homework in pdf format if you are not rendering a Quarto document. If you are using a Quarto doc to render your full homework, then you can keep it as an html! You can type your work on your computer or submit a single file with photos of your written work or any other method that can be turned into a pdf. The Adobe Scan phone app is an easy way to scan photos and compile into a PDF. Please let me know if you greatly prefer to submit a physical copy. We can work out another way for you to turn in homework.

You can download the .qmd file for this assignment from Github if you want to work in a Quarto doc. You do not need to work in a Quarto doc for this homework!!

Tip

It is a good idea to try rendering your document from time to time as you go along! Note that rendering automatically saves your Qmd file and rendering frequently helps you catch your errors more quickly.

0.1 Complete the group evaluation

Please complete the group evaluation form by the homework assignment due date.

https://forms.office.com/Pages/ResponsePage.aspx?id=V3lz4rj6fk2U9pvWr59xWFMopmPUjRtDiHLswhgacNhURUY1SEhBVzJLQkxGM1lZWERQUlRLNEUzSi4u

1 Book exercises

3.38 Stenographer’s typos

3.40 Osteosarcoma in NYC

Only parts a-c

2 R exercises

2.1 R exercise 1

Below you will be using the dataset from Gapminder.

2.1.1 Load all the packages you need below here

You don’t need to do it all at once, you can add more libraries as you realize you need them.

2.1.2 Import dataset

Import the dataset called “Gapminder_2011_LifeExp_CO2.csv” You can find it in the student files under Data then Homework. You will need to download the file onto your computer, and use the correct file path to import the data.

2.1.3 Make a histogram

Using ggplot2, make a histogram of the variable CO2emissions.