── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.2.1 ✔ readr 2.2.0
✔ forcats 1.0.1 ✔ stringr 1.6.0
✔ ggplot2 4.0.3 ✔ tibble 3.3.1
✔ lubridate 1.9.5 ✔ tidyr 1.3.2
✔ purrr 1.2.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
games <-read_csv("https://myxavier-my.sharepoint.com/:x:/g/personal/kassemm1_xavier_edu/IQCjpScdIOmrQZS8PMAM7WeBAXUdw8em3N9xQ9CDxmOr4yw?download=1")
Rows: 360 Columns: 6
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (4): title, creator, game_url, genre
dbl (2): price, rating_avg
ℹ 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.
The Big Question
There’s no doubt that indie games have begun to gain more and more prevalence in the gaming industry in recent years, to varying degrees of success. A lot of the time, Indie Games are simple and small projects that developers create in their free time at no cost to the player, however, there are some indie developers who can charge a decent price tag to anyone who wants to play their game. My analysis tests whether or not slapping a price tag on an indie game means that the game is more well regarded than those that a player can download and play for free.
My Method
I scraped the “Top rated” list on itch.io (https://itch.io/games/top-rated) using R and the rvest package. A function in my separate R script scrapes one page of games, and a loop runs it on pages 1 to 10, giving different games. The data (title, creator, genre, price, and average rating) were saved as a CSV, hosted on OneDrive, and imported here. Data belong to itch.io and its creators.
To scrape ethically, I checked robots.txt and the terms of service and found no language prohibiting this use. I only requested public list pages, identified myself with a user agent, and waited 3 seconds between requests. The data were scraped on Novermber 24th, 2027.
Wrangling the data was simple enough. All I had to do in my code was convert the price into an integer and remove the dollar sign, and remove the text in the ratings column by extracting the average. For games with no price tag, the price value is null.
Analysis
Disclaimer: The rating system used by Itch.Io scores games on a scale from 0-5
games %>%ggplot(aes(x = rating_avg)) +geom_histogram(binwidth =0.05, fill ="blue", color ="white") +labs(title ="Distribution of Average Ratings of Top Rated Games",x ="Average rating",y ="Number of games")
The average rating among the top rated games on itch.io ranges between 4.5 and 5, with the majority of games sitting between a 4.8 and 5 rating. The distribution is slightly skewed to the left, and the differences between the ratings is likely to be small, as this analysis evaluates the top rated games on the site.
games <- games %>%mutate(has_price_tag =!is.na(price))games %>%group_by(has_price_tag) %>%summarize(n =n(),mean_rating =mean(rating_avg),median_rating =median(rating_avg))
For the next part of the analysis, I mutated the data to include a True or False variable of whether or not the game has a price tag attached on itch.io’s site. According to this summary table, we can identify that whether or not a game has a price attached to it does not seem to have any significant effects on the average and median ratings of the games.
games %>%ggplot(aes(x = has_price_tag, y = rating_avg)) +geom_boxplot(fill ="purple") +labs(title ="Average Rating by Price Listing",x ="Has a price tag",y ="Average rating")
Using the price tag mutation from the last analysis, we can identify that the median rating for games with a price tag is almost identical to games without one, being barely 0.01 apart. Based on this boxplot, we can reasonable conclude that the existence of a price tag does not directly effect a game’s rating.
games %>%filter(has_price_tag) %>%ggplot(aes(x = price, y = rating_avg)) +geom_point(color ="orange", alpha =0.6) +geom_smooth(method ="lm", se =FALSE, color ="black") +labs(title ="Price vs. Average Rating",x ="Price (USD)",y ="Average rating")
`geom_smooth()` using formula = 'y ~ x'
There is a slight upward trend in the ratings scores across games of varying price points, indicating that more expensive games tend to have higher ratings on average. However, with the slope being so slight, it indicates that the game’s price may not have a significant impact on its rating.
games %>%filter(has_price_tag) %>%arrange(desc(price)) %>%head(10) %>%ggplot(aes(x =reorder(title, price), y = rating_avg)) +geom_col(fill ="purple") +coord_flip() +coord_cartesian(ylim =c(4.5, 5)) +labs(title ="Ratings of the 10 Most Expensive Games",x ="", y ="Average rating")
Coordinate system already present.
ℹ Adding new coordinate system, which will replace the existing one.
These are the top 10 most expensive games listed on itch.io’s website, and from this column chart, we can conclude that the price of the game does not have a significant impact on its rating, as the difference between the rating for the most vs least expensive game in the top 10 is negligible.
Conclusion
Based on the 5 visualizations, we can reasonably conclude that the relationship between an indie game’s price and its average rating is a very weak one. It seems that whether or not a game is free does not have a significant bearing on its ratings.