Skip to content
Snippets Groups Projects
Commit b5b1028f authored by Ingram Jaccard's avatar Ingram Jaccard
Browse files

edit figures

parent c6e91f39
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
,jaccard,jaccard-Latitude-E6440,06.02.2021 16:54,file:///home/jaccard/.config/libreoffice/4;
\ No newline at end of file
...@@ -125,6 +125,19 @@ cols_ex = c("year", "eu_q_rank", "sector_agg_id") ...@@ -125,6 +125,19 @@ cols_ex = c("year", "eu_q_rank", "sector_agg_id")
pdat_sector_summary_by_eu_ntile = pdat_sector_summary_by_eu_ntile =
pivot_results_longer_adorn(dat_sector_summary_by_eu_ntile, cols_ex) pivot_results_longer_adorn(dat_sector_summary_by_eu_ntile, cols_ex)
# European decile names
eu_q_rank = seq(1:10)
eu_decile_name = c("D01",
"D02",
"D03",
"D04",
"D05",
"D06",
"D07",
"D08",
"D09",
"D10")
eu_decile_name = data.frame(eu_q_rank,eu_decile_name)
``` ```
...@@ -185,10 +198,11 @@ As inequality measure through the study, we divide the value in the top European ...@@ -185,10 +198,11 @@ As inequality measure through the study, we divide the value in the top European
p1 = pdat_country_summary_by_eu_ntile %>% p1 = pdat_country_summary_by_eu_ntile %>%
filter(year == 2015, filter(year == 2015,
indicator == "total_fd_me") %>% indicator == "total_fd_me") %>%
left_join(eu_decile_name, by = "eu_q_rank") %>%
group_by(eu_q_rank) %>% group_by(eu_q_rank) %>%
summarise(value = sum(value)*0.000001, summarise(value = sum(value)*0.000001,
eu_ntile_name = first(eu_ntile_name)) %>% eu_decile_name = first(eu_decile_name)) %>%
ggplot(aes(x=eu_ntile_name, y=value)) + ggplot(aes(x=eu_decile_name, y=value)) +
geom_col(position = position_dodge(), fill=pal[1]) + geom_col(position = position_dodge(), fill=pal[1]) +
#theme_ipsum() + #theme_ipsum() +
theme_minimal() + theme_minimal() +
...@@ -199,10 +213,11 @@ p1 = pdat_country_summary_by_eu_ntile %>% ...@@ -199,10 +213,11 @@ p1 = pdat_country_summary_by_eu_ntile %>%
p2 = pdat_country_summary_by_eu_ntile %>% p2 = pdat_country_summary_by_eu_ntile %>%
filter(year == 2015, filter(year == 2015,
indicator == "total_energy_use_tj") %>% indicator == "total_energy_use_tj") %>%
left_join(eu_decile_name, by = "eu_q_rank") %>%
group_by(eu_q_rank) %>% group_by(eu_q_rank) %>%
summarise(value = sum(value)*0.000001, summarise(value = sum(value)*0.000001,
eu_ntile_name = first(eu_ntile_name)) %>% eu_decile_name = first(eu_decile_name)) %>%
ggplot(aes(x=eu_ntile_name, y=value)) + ggplot(aes(x=eu_decile_name, y=value)) +
geom_col(position = position_dodge(), fill=pal[1]) + geom_col(position = position_dodge(), fill=pal[1]) +
#theme_ipsum() + #theme_ipsum() +
theme_minimal() + theme_minimal() +
...@@ -213,10 +228,11 @@ p2 = pdat_country_summary_by_eu_ntile %>% ...@@ -213,10 +228,11 @@ p2 = pdat_country_summary_by_eu_ntile %>%
p3 = pdat_country_summary_by_eu_ntile %>% p3 = pdat_country_summary_by_eu_ntile %>%
filter(year == 2015, filter(year == 2015,
indicator == "total_co2eq_kg") %>% indicator == "total_co2eq_kg") %>%
left_join(eu_decile_name, by = "eu_q_rank") %>%
group_by(eu_q_rank) %>% group_by(eu_q_rank) %>%
summarise(value = sum(value)*0.000000001, summarise(value = sum(value)*0.000000001,
eu_ntile_name = first(eu_ntile_name)) %>% eu_decile_name = first(eu_decile_name)) %>%
ggplot(aes(x=eu_ntile_name, y=value)) + ggplot(aes(x=eu_decile_name, y=value)) +
geom_col(position = position_dodge(), fill=pal[1]) + geom_col(position = position_dodge(), fill=pal[1]) +
#theme_ipsum() + #theme_ipsum() +
theme_minimal() + theme_minimal() +
......
No preview for this file type
source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment