medal_location2 | R Documentation |
Medal Counts for Winter Olympics by Country
A dataset containing the medals and places won by each country, assuming the country has won at least 1 total medal; helpful for geospatial mapping
medal_location2
A data frame with 36 rows and 6 variables:
name of country, as referred to by the USA
country code, as referred to by the UN
number of bronze medals, in counts
number of gold medals, in counts
number of silver medals, in counts
total number of medals, sum of bronze, gold, and silver
utils::head(medal_location2) plotly::plot_ly(medal_location2, type='choropleth', locations=medal_location2$iso_a3, z=medal_location2$total, text=medal_location2$hover, colorscale="Blues", reversescale = TRUE) |> # make darker countries = more medals plotly::layout(title = "Winter Olympic Medals Won per Country <br> (1924 - 2014)") |> plotly::colorbar(title = "Total Medals")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.