Visualizing Wine Reviews

[This article was first published on R – NYC Data Science Academy Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Wine shopping...


Have you ever been wine shopping and wondered if the ratings actually mean anything? Do only high-priced wines get good reviews? This analysis attempts to demystify some of the confusion behind these ratings by examining a wide range of wines reviewed by a popular wine publication and showing ways to choose a wine based on other factors such as country of origin and varietal.


I obtained a data set of reviews for over 110,000 different wines published by Wine Enthusiast magazine between 1999 and 2017. The wines reviewed originated from 42 different countries and ranged in price from $4 to $3300. Reviews were written by at least 20 different professional wine tasters (some anonymous) and included a rating of the wine on a 100-point scale. Only wines with a rating of 80 or higher are reviewed and included in the database. The rating scale used by Wine Enthusiast magazine is provided below. A “Classic” rating is extremely rare – in fact, only 115 wines among the 110,000 reviewed received a rating of 98 or higher.

Classic 98-100 The pinnacle of quality.
Superb 94-97 A great achievement.
Excellent 90-93 Highly recommended.
Very Good 87-89 Often good value; well recommended.
Good 83-86 Suitable for everyday consumption; often good value.
Acceptable 80-82  Can be employed in casual, less-critical circumstances.


Wine Ratings vs. Price

One of the first questions you may have when shopping for a wine and see its rating is to ask whether the wine will be good enough for the occasion or if it’s better to spend more money and get a better wine. To better visualize the relationship between price and rating, I’ve plotted the rating against the wine price for 5000 wines sampled from the data set. It’s no surprise that yes, higher-priced wines do tend to have higher ratings. However, the extremely high-priced wines graphed on a linear scale make it difficult to see the relationship for the majority of the wines reviewed, so I’ve also plotted the price on a logarithmic scale, which shows a much more direct relationship between price and wine rating.

The good news for (frugal) wine lovers is that the spread in the data for many of the wines in the $10 to $100 range reveals that there are still many wines with “Excellent” ratings of 90 and above within reach. Using the linear regression line in the Rating vs. log(Price) graph allows us to determine that wines plotted several points above the line are better values compared to others in its price range or rating category.

Varietal Ratings and Prices by Country

Next I was interested in finding out if the ratings and prices for different varietals varied by country and if there was a significant difference in price and rating. These bar charts, which compared the average rating and median price for several varietals from the 5 countries with the most wines reviewed, showed some surprising insights as well. For example, Bordeaux Red-blends from Portugal, on average, were more highly-rated than the other four countries and had a much lower significant median selling price. On the other hand, Spanish Rieslings were rated lower than the other four countries shown, but sold for a similar price. Comparing favorite wine varietals in this manner enables consumers to find better deals on higher-rated wines and encourage them be more adventurous in trying different wines.

Wine Selector

Finally, I also put together a few tools to help explore the full database of wines reviewed and find the best values on wines specified by varietal and price range. The user can also choose a desired rating category and search for the wines Idetermined were the “Best Values” from my wine rating vs. price analysis. Another tool allows the user to see the most popular wine varietal from different countries around the world and each of the U.S. states that produce wines. This may be useful for travelers wishing to find the best type of wine to drink when visiting or to buy as a memorable souvenir.

Most Popular Wine  by Region


Overall we can see that higher-priced wines tend to have higher ratings, however more can be learned when comparing these two variables. Using these tools, we can discover new wines and find the best values for wines we love. Additional work includes the ability to filter out wines that are currently available, using today’s prices, since many of the reviews may date back up to 17 years, and links to the full text of each wine’s review.



Data source: Kaggle Dataset: Wine Reviews

Data analysis and interactive charts were developed with R and Shiny and can be found here.

Github code

To leave a comment for the author, please follow the link and comment on their blog: R – NYC Data Science Academy Blog. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)