Add your Name and the Date

The first thing you need to do in this file is to add your name and date in the lines underneath this document’s title (see the code in lines 9 and 10).

Identify and Set Your Working Directory

You need to identify and set your working directory in this section.

Installing and Loading Packages and Data Set

You load the packages and data set you’ll use for the lab assignment in this section.

Amounts

You need to create a set of graphs and identify respondents’ preferences in this subsection. You need to create two bar graphs that plot respondents’ favorite sauce. The first should be a basic bar graph. The second should order respondents’ favorite sauces from most to least and change the color of the bars to orange. For both bar graphs, you should change the labels on the x-axis to reflect respondents’ favorite sauces in words. After you’ve done that, you need to identify how many total respondents prefer each type of sauce.

Favorite.Sauce.Label n 1 Dry Rub 46 2 Eastern Style 162 3 Kansas Style 26 4 Korean Style 27 5 Other 30 6 South Carolina Mustard 25 7 Western Style 63

Proportions

You need to create two pie charts in this section: one that plots respondents’ favorite sauces and one that plots respondents’ preferred level of sweetness. Both pie charts should identify what percentage of respondents prefer each type of sauce or level of sweetness (rounded to one decimal point), respectively, on the appropriate segment or slice of the pie chart. Both charts should have a “blank” or “clean” background. You should also identify how many people (total) prefer each level of sweetness.

Sweetness.Label n 1 2 83 2 3 163 3 4 85 4 Honey 18 5 Vinegar 30

Distributions

You need to create two histograms in this section: one that plots the distribution of how much respondents will pay for a plate of ribs and one that plots the distribution of how much respondents will pay for a pulled pork sandwich. Both histograms should have the following features: purple bars, 15 bins, no background grid, no background color, and x- and y-axes. You should also identify the mean and standard deviation of how much respondents will pay for a plate of ribs and how much they are willing to pay for a pulled pork sandwich.

ribs mean: [1] 23.06332 Ribs SD: [1] 9.937434

Pulled pork mean: [1] 13.4723 Pulled Pork SD: [1] 5.305597

Publish Document

Click the “Knit” button to publish your work as an html document. This document or file will appear in your working directory. You will need to upload both this RMarkdown file and the html file it produces to AsU Learn to get all of the lab points for this week.