Depth of Hunger

Contents

Depth of Hunger#

Part 1#

Construct a frequency polygon from the frequency distribution for the 50 highest ranked countries for depth of hunger.

Please open the RStudio workspace below and edit the student.R script to complete the following task:

Please write R code that generates a frequency polygon with the following properties:

  • The title of the frequency polygon should be ‘Depth of Hunger’.

  • The x-axis label should be ‘Depth of Hunger’.

  • The y-axis label should be ‘Frequency’.

  • The frequency polygon should not be filled.

  • Do not overplot your line graph.

When you are ready to test your code, click the “Grade” button.

Once you are satisfied with the plot your code generates, make sure the script file is saved in RStudio.

To submit your answer after saving it in RStudio, come back to this page and select “Save & Grade” or “Save only” at the bottom of the page.

Note: You should not need to use ggplot2 for this question, and you are not advised to do so, as it may interfere with the autograder.

Attribution#

Problem is from the OpenStax Introductory Statistics 2e textbook, licensed under the CC-BY 4.0 license.
Image representing the Creative Commons 4.0 BY license.