Variables:
Population: In thousands
Income:
Illiteracy:
Life.Exp: Life expectancy
Murder:
HS.Grad: High school Graduation Rate
Frost:
Area:
state.abb:
state.area:
x: Latitude:
y: longitude:
state.division:
state.name:
state.region:
Honor Code:
Questions:
1. Make a histogram of Population variable using hist function. [4]
2. Color the above histogram yellow, increase number of breaks to 25. [4]
3. In the above histogram, add x label = Population, main = Distribution of State Population. Describe the distribution: Is it symmetric, right skewed, or left skewed? [4]
4. Make a Bar graph to show the distribution of state.region variable. [4]
5. Customize the above bargraph and color the bars red, blue, green, and yellow [4]
6. Scatterplot of Murder (y-axis) vs Frost (x-axis). [4]
7. Customizing the scatterplot in #6, x label = Frost, y label = Murder, main = Murder vs Frost. Is the form (linear or nonlinear), direction (positive or negative), strength (strong or weak)? [5]
8. Scatterplot matrix of Population + Income + Illiteracy + Life.Exp + Murder + HS.Grad + Frost + Area. Life.Exp has negative relationship with which two variables? Illiteracy has positive relationship with which variable? [5]
9. Make boxplots to compare distribution of HS.Grad across state.region. [4]
10. Color the above box plot red, blue, green, and yellow. [4]
11. Add x label as Region, Y label as High School Graduation, and main as High School Graduation across Regions. Which region has the highest median graduation rate? Which region has the lowest median graduation rate? [5]
12. Add varwidth = T in the above boxplots to display difference in number of observations. [3]