The United States Geological Survey continuously monitors earth quakes and makes the corresponding data available to the public. A dataset containing all worldwide earth quakes for a time frame of 30 days is available at http://www.hofroe.net/data/earthquakes.csv.
You can find the accompanying codebook at US Geology Survey (you should be able to answer all questions in this exam without the codebook).
Update: the link to the csv file above is not valid anymore. Please use the following code to load the data
eq <- read.csv("https://raw.githubusercontent.com/DS202-at-ISU/DS202-at-ISU.github.io/master/exams/earthquakes.csv")
# place the code for your answer here
# place the code for your answer here
# place the code for your answer here
# place the code for your answer here
# place the code for your answer here
maps
package and extract a world map (hint:
think of map_data
). Plot the world map using a polygon
layer. Set the fill color to grey50
. Add a layer of points
to the map showing the locations of earthquakes use color to distinguish
between small and large earthquakes.Describe what you see.
# place the code for your answer here
the number of earthquakes,
their average magnitude,
the name of the country/state in which most of them happened that day.
Based on the summary data, draw a single chart that incorporates all of the above information.
# place the code for your answer here