0.1 ggplot2
Make a scatterplot of
ctyvs.hwympg using thempgdataset.Describe the relationship that you see.
Map color and shape to type of drive the car is (see
?mpgfor details on the variables.). Do you see any patterns?Alter your plot from part 3. to make all the points be larger.
Using the
mpgdataset,Make a histogram of
hwy, faceted bydrv.Make a scatterplot that incorporates color, shape, size, and facets.
BONUS - Color your histograms from 1. by
cyl. Did this do what you thought it would? (Look atfillandgroupas options instead).
0.2 readr
Read the NFL salaries dataset from https://raw.githubusercontent.com/ada-lovecraft/ProcessingSketches/master/Bits%20and%20Pieces/Football_Stuff/data/nfl-salaries.tsv into
R.What is the highest NFL salary in this dataset? Who is the highest paid player?
Make a histogram and describe the distribution of NFL salaries.
0.3 dplyr
Using the NFL salaries from https://raw.githubusercontent.com/ada-lovecraft/ProcessingSketches/master/Bits%20and%20Pieces/Football_Stuff/data/nfl-salaries.tsv that you loaded into R in the section, perform the following.
What is the team with the highest paid roster?
What are the top 5 paid players?
What is the highest paid position on average? the lowest? the most variable?
0.4 tidyr
Is the NFL salaries from https://raw.githubusercontent.com/ada-lovecraft/ProcessingSketches/master/Bits%20and%20Pieces/Football_Stuff/data/nfl-salaries.tsv that you loaded into
Rin a previous your turn tidy? Why or why not?There is a data set in
tidyrcalledworld_bank_popthat contains information about population from the World Bank (https://data.worldbank.org/). Why is this data not tidy? You may want to read more about the data to answer (?world_bank_pop).Use functions in
tidyrto turn this into a tidy form.