Note: This is a presentation of the project expressing on how consumers evaluate each unique restaurant

1.Loading data

Prepare and setup data for working

library(tidyverse) 
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.0     ✔ stringr   1.5.1
## ✔ ggplot2   3.5.1     ✔ tibble    3.2.1
## ✔ lubridate 1.9.3     ✔ tidyr     1.3.1
## ✔ purrr     1.0.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
library(dplyr)
library(ggplot2)
setwd("C:/Users/admin/OneDrive/Documents/Code/R/Data frames")
restaurant <- read.csv("restaurants.csv")
consumer <- read.csv("consumers.csv")
rating <- read.csv("ratings.csv")

2. Dataset walkthrough

The data consists of 3 main parts

head(restaurant)
head(consumer)
head(rating)

3. Illustrating the graphs

 ggplot(restaurant, aes(x = "", y = Price, fill = Price)) + geom_col() + coord_polar(theta = "y") +scale_fill_manual(values = c("steelblue", "grey", "aquamarine")) + labs(title = "Restaurant by Price" + geom_text(aes(label = paste0(round((count_price/sum(price))*100), "%")), position = position_stack(vjust = 2)))  

The chart below shows the Distribution of Alcohol Services on each Price

ggplot(data = restaurant,aes(x = Price, fill = Alcohol_Service)) + geom_bar( stat = "count", position = "dodge") + labs(title = "Alcohol by Price")

And another chart showing the Distribution of Smoking Service on each Price

ggplot(data = restaurant, aes(x= Price, fill = Smoking_Allowed))+geom_bar(stat= "count", position = "dodge") + labs(title = "Smoking by Price")