In this homework we will use the penguins
data set. This
data set is part of the palmerpenguins
package. You can
load the data set by executing the command:
data(penguins, package="palmerpenguins")
If the command above throws an error message about the package not
found, make sure to install the palmerpenguins
package on
your machine.
The information in the penguins data is collected by several
antarctic research teams, who took body measurements of different types
of penguins in three different locations. See ?penguins
for
a description of all of the variables and a bit of the scientific
background of this data.
For all of the questions, we would like to see your answer based on R code, i.e. for each question include a code chunk with the relevant code AND write the answer to the question based on the code results in plain English.
# Your code goes here
Replace this text with your answers to question 2
Rubric: 1 point (.5 for the code, 0.5 for the answer)
bill_length_mm
) of a penguin’s
beak relate to its depth (bill_depth_mm
)? Use the
ggplot2
package to show a chart, describe the relationship
in words. Describe the structure and propose a follow-up. (3 sentences:
structure of the plot, what do you see, follow-up). bill_length_mm
) of a penguin’s beak and its depth
(bill_depth_mm
) under these two color mappings. How do
these color mappings inform the relationship between bill lengths and
bill depths? Note: your submission is supposed to be fully reproducible, i.e. the TA and I will ‘knit’ your submission in RStudio.
For the submission: submit your solution in an R Markdown file and (just for insurance) submit the corresponding html (or Word) file with it.