Skip to content
Snippets Groups Projects
Commit 91119318 authored by marius-lucas braun's avatar marius-lucas braun
Browse files

saved CO2factor and esub_cons figures as PNG files (for referencing in README.md)

parent 803a74d4
No related branches found
No related tags found
No related merge requests found
No preview for this file type
figures/esub_cons/plot_esub_cons_policy_lo.png

122 KiB

No preview for this file type
figures/esub_cons/plot_esub_cons_policy_mi.png

126 KiB

{ {
"R": { "R": {
"Version": "4.3.2", "Version": "4.3.1",
"Repositories": [ "Repositories": [
{ {
"Name": "REPO_NAME", "Name": "REPO_NAME",
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
}, },
"Matrix": { "Matrix": {
"Package": "Matrix", "Package": "Matrix",
"Version": "1.6-1.1", "Version": "1.6-1",
"Source": "Repository", "Source": "Repository",
"Repository": "CRAN", "Repository": "CRAN",
"Requirements": [ "Requirements": [
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"stats", "stats",
"utils" "utils"
], ],
"Hash": "4767d80e0dcdf2ee70bd5ed1e1d37c4a" "Hash": "8a14614ea3b5921618413502f1398bbc"
}, },
"R6": { "R6": {
"Package": "R6", "Package": "R6",
...@@ -406,7 +406,7 @@ ...@@ -406,7 +406,7 @@
}, },
"lattice": { "lattice": {
"Package": "lattice", "Package": "lattice",
"Version": "0.21-9", "Version": "0.21-8",
"Source": "Repository", "Source": "Repository",
"Repository": "CRAN", "Repository": "CRAN",
"Requirements": [ "Requirements": [
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
"stats", "stats",
"utils" "utils"
], ],
"Hash": "5558c61e0136e247252f5f952cdaad6a" "Hash": "0b8a6d63c8770f02a8b5635f3c431e6b"
}, },
"lifecycle": { "lifecycle": {
"Package": "lifecycle", "Package": "lifecycle",
......
...@@ -30,6 +30,9 @@ params = readRDS("interim/params.rds") ...@@ -30,6 +30,9 @@ params = readRDS("interim/params.rds")
policies = c("policy", "cbam") policies = c("policy", "cbam")
inc_groups = c("lo", "mi", "hi") inc_groups = c("lo", "mi", "hi")
# specify file types that figures should be saved as
filetypes = c(".pdf", ".png")
# minimum CO2 target # minimum CO2 target
min_CO2factor = 0.87 min_CO2factor = 0.87
...@@ -165,19 +168,21 @@ for(i in 1:length(params)) { ...@@ -165,19 +168,21 @@ for(i in 1:length(params)) {
linewidth = 1 linewidth = 1
) + ) +
theme_minimal(base_size = 18.5) theme_minimal(base_size = 18.5)
rm(ci_value)
} }
# save histogram as PDF # save histogram as PDF and PNG
ggsave( for(l in 1:length(filetypes)) {
file.path( ggsave(
"figures", file.path(
params[i], "figures",
paste0(plot_name, ".pdf") params[i],
paste0(plot_name, filetypes[l])
)
) )
) }
} }
} }
} }
rm(i, j, k, welf_effect_name, welf_effect, welf_name, rm(i, j, k, welf_effect_name, welf_effect, welf_name,
ci_value, plot_name, plot_value, params, plot_name, plot_value, params, inc_groups, policies)
inc_groups, policies)
\ No newline at end of file
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