stats <- read_csv("../00_data/myData.csv")
## New names:
## Rows: 39 Columns: 8
## ── Column specification
## ──────────────────────────────────────────────────────── Delimiter: "," chr
## (2): Country, ...8 dbl (5): Kill/Death Ratio, Player Rating, Headshot
## Percentage, Kills Per Rou... lgl (1): ...7
## ℹ Use `spec()` to retrieve the full column specification for this data. ℹ
## Specify the column types or set `show_col_types = FALSE` to quiet this message.
## • `` -> `...7`
## • `` -> `...8`
stats <- stats %>%
janitor::clean_names()
What country has the best players and what country has the worst players?
The dataset is a collection of Counter-Strike: Global Offensive professional players stats. This data has been averaged and condensed into the countries that the player is from. There are stats such as headshot percentage, player impact, player rating, and kill/death ratio, but the only ones that is taken into account here are player rating and player impact.
stats %>%
ggplot(aes(x = player_impact, fct_reorder(country, player_impact))) +
geom_point() +
labs( title = "Player Impact by Country",
x = "Player Impact",
y = "Country")
stats %>%
ggplot(aes(x = player_rating, fct_reorder(country, player_rating))) +
geom_point() +
labs( title = "Player Rating by Country",
x = "Player Rating",
y = "Country")
The Best Country:
As shown in the charts, I believe that New Zealand creates the best players. Based on player impact, the top three countries are Singapore, New Zealand, and Indonesia in that order. Going just off of this would mean that Singapore creates the best players, but taking player rating into account, the top three countries are New Zealand, Indonesia, and Turkey. This means that New Zealand scores the second best country in player impact and the best country in player rating, while Singapore falls out of the top 3 in player rating. This is why I believe New Zealand creates the best players.
The Worst Country:
As shown in the charts, it is certain that Belarus creates the worst players. Unlike the argument for New Zealand creating the best players, Belarus scores the worst country in both player impact and rating. You could make an argument that if you took out the outliers that Belarus wouldn’t make the cut and neither would New Zealand due to them being vastly higher/lower in stats, but I think that including these outliers is important. This data was already filtered so that there had to be at least 3 players from each country to eliminate the chance of a country with a single player that has good stats making it seem like that country produces the best players.