Let’s start graphing!
Start by changing your name above!
Complete the following 4 primers. Note that the rest of this activity will ask you to edit this document based on your tutorial answers, so I would review the questions before you dive in.
dplyr
: practice w/ pipes and other key commands: summarize()
, mutate()
, and group_by()
Now that we’re getting familiar with the RStudio primers, you’ll notice that they save your progress - handy!
I would recommend working through them both in the tutorial and in a separate .Rmd file on your computer - it will be exeptionally useful to have all the written examples together.
Load all the libraries you need here, so you don’t have to worry about it later on:
dplyr
”Recreate your code to complete the two challenges at the end of the “Derive Information with dplyr
” tutorial:
# How many distinct boys names acheived a rank of Number 1 in any year?
# How many distinct girls names acheived a rank of Number 1 in any year?
Recreate your code to complete Exercise 5 in “Bar Charts” (subsection “Aesthetics”). I
Create a colored bar chart of the class variable from the mpg data set, which comes with ggplot2. Map the interior color of each bar to class.
# Put your code here! Make sure it runs
Recreate your code to complete Exercise 5 in “Histograms” (subsection “Histograms”).
Recreate the histogram below.
# Put your code here! Make sure it runs
In this space, type your answer to the following prompts (no word limit):
Were there any particular successes you had?
What are 2 questions you had or concepts you felt uncomfortable with?
Finally, knit this document to Word, html, or PDF and upload into Blackboard.
tinytex
package. This is a two-step process. Andrew Heiss provides the clearest explanation.Note: If you get a weird error message about Error in contrib.url(repos,"source")...
comment out the two lines that install your packages.