Import data
# excel file
data <- read_excel("data/my_Data_updated.xlsx")
data
## # A tibble: 1,430 × 4
## country food_category consumption co2_emmission
## <chr> <chr> <dbl> <dbl>
## 1 Argentina Beef 55.5 1712
## 2 Australia Beef 33.9 1045.
## 3 Albania Beef 22.5 694.
## 4 Iceland Beef 13.4 412.
## 5 New Zealand Beef 22.5 694.
## 6 USA Beef 36.2 1118.
## 7 Uruguay Beef 29.1 898.
## 8 Luxembourg Beef 29.9 922.
## 9 Brazil Beef 39.2 1211.
## 10 Kazakhstan Beef 23.4 721.
## # ℹ 1,420 more rows
Plot data
data %>%
ggplot(aes(food_category)) +
geom_bar()
