1. An R Markdown file is plain text file that contains what 3 important types of content?

An (optional) YAML header surrounded by —s. Chunks of R code surrounded by ```. Text mixed with simple text formatting like # heading and italics.

  1. What is a chunk and how do you add them? of the many chunk options which one do you think you will use the most and why? How is inline code different than code chunks?

  2. What’s gone wrong with this code? Why are the points not blue?

ggplot(data = mpg) + geom_point(mapping = aes(x = displ, y = hwy, color = “blue”))

No quotation marks are needed around blue. Instead, it should be color = blue