--- title: "week 03 question set" format: html editor: visual --- ```{'''{} a. **An R Markdown file is plain text file that contains what 3 important types of content?** R-markdown files contain first the YAML header with the title that has format, author, and all that information. The second regular text located in between the YAML header and code chunk. The third part is the code chunk. Which contains all the important text that will run your program or plots (pwd, tr, or curl) b.** 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?** A chunk is a block of code used to run desired programs. In order to add a chunk you can either click on the green box with a white C in it next to the run button or go to "code" in the top menu bar and click "insert chunk". I will likely use the chunk button because it is faster. Inline code almost acts as a comment. It wont run any programs, it is just a header. c. **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")) Note if you are using the ggplot package then it contains certain color package in it. Use scale_color_brewer example. You can add that to the code in separate brackets then specify that you want the points in blue. It also doesn't seem as though the points were specified separately. Based on how you type the input command then the system will assume color is data from the given file, So instead of a comma after hwy, you need to put a parentheses to separate color, that way it reads it as a different value. ```