library(dplyr)# Vector with the names of the countries of interestcountries_of_interest <-c("Cambodia", "China","Fiji", "Guam", "Hong Kong SAR, China", "Indonesia", "Kiribati", "Korea", "Laos", "Malaysia", "Marshall Islands","Mongolia", "Myanmar", "NEW CALEDONIA","Philippines", "Samoa", "Singapore", "Solomon Islands", "Thailand","Tonga", "Taipei","Tuvalu", "Vanuatu", "Vietnam")# Filter out the APAC countriesfiltered_data <- Fossil_fuel_consumption_subsidies_2010_2022 %>%filter(Country %in% countries_of_interest)
ggplot(data_long, aes(x = Product, y = Value, fill = Product)) +geom_bar(stat ="identity") +theme_minimal() +labs(title ="Total Energy Subsidies Values", x ="Product", y ="Total Value") +scale_fill_brewer(palette ="Set1")
ggplot(data_long %>%filter(Country =="China"), aes(x = Product, y = Value, fill = Product)) +geom_bar(stat ="identity") +theme_minimal() +labs(title ="Total Energy Subsidies Values for China", x ="Product", y ="Total Value") +scale_fill_brewer(palette ="Set2")