diff --git a/R/reportRenovation.R b/R/reportRenovation.R index afeba32..6496dfa 100644 --- a/R/reportRenovation.R +++ b/R/reportRenovation.R @@ -62,7 +62,7 @@ reportRenovation <- function(gdx, brickSets = NULL, silent = TRUE) { ## by initial heating system ==== reportAgg(v_renovation, - "Renovation|Residential|{hs} (bn m2/yr)", brickSets, + "Renovation|Residential|Initial|{hs} (bn m2/yr)", brickSets, agg = c(bs = "all", bsr = "all0", hsr = "all", vin = "all", loc = "all", typ = "res", inc = "all"), rprt = c(hs = "all"), silent = silent), @@ -70,7 +70,7 @@ reportRenovation <- function(gdx, brickSets = NULL, silent = TRUE) { ## by building type + initial heating system ==== reportAgg(v_renovation, - "Renovation|Residential|{typ}|{hs} (bn m2/yr)", brickSets, + "Renovation|Residential|{typ}|Initial|{hs} (bn m2/yr)", brickSets, agg = c(bs = "all", bsr = "all0", hsr = "all", vin = "all", loc = "all", inc = "all"), rprt = c(hs = "all", typ = "res"), silent = silent), @@ -78,7 +78,7 @@ reportRenovation <- function(gdx, brickSets = NULL, silent = TRUE) { ## by final heating system ==== reportAgg(v_renovation, - "Renovation|Residential|all|{hsr} (bn m2/yr)", brickSets, + "Renovation|Residential|Final|{hsr} (bn m2/yr)", brickSets, agg = c(bs = "all", hs = "all", bsr = "all0", vin = "all", loc = "all", typ = "res", inc = "all"), rprt = c(hsr = "all"), silent = silent), @@ -86,7 +86,7 @@ reportRenovation <- function(gdx, brickSets = NULL, silent = TRUE) { ## by final heating system, without zero state ==== reportAgg(v_renovation, - "Renovation|Residential|all|With zero|{hsr} (bn m2/yr)", brickSets, + "Renovation|Residential|Final with zero|{hsr} (bn m2/yr)", brickSets, agg = c(bs = "all", hs = "all", bsr = "all0", vin = "all", loc = "all", typ = "res", inc = "all"), rprt = c(hsr = "all0"), silent = silent), diff --git a/inst/compareScenarios/cs_01_stockFlows.Rmd b/inst/compareScenarios/cs_01_stockFlows.Rmd index 69bd8ef..d944445 100644 --- a/inst/compareScenarios/cs_01_stockFlows.Rmd +++ b/inst/compareScenarios/cs_01_stockFlows.Rmd @@ -35,7 +35,7 @@ showAreaAndBarPlots(data, vars = locationRes, tot = tot, orderVars = "user", sca walk(locationRes, showLinePlots, data = data) ``` -#### by Renovation cohort +#### by Construction cohort ```{r Stock-Residential-(vintage)} showAreaAndBarPlots(data, vars = rev(vintageRes), tot = tot, orderVars = "user", scales = "fixed") ``` @@ -107,11 +107,12 @@ showAreaAndBarPlots(data, vars = subsec, tot = tot, orderVars = "user", scales = ### Residential ```{r residential Renovation vars} tot <- "Renovation|Residential" -totAfter <- "Renovation|Residential|all" # for proper plotting -totAfterZero <- paste(totAfter, "With zero", sep = "|") -heatingResBefore <- paste(tot, heating, sep = "|") -heatingResAfter <- paste(tot, "all", heating0, sep = "|") -heatingResAfterZero <- paste(tot, "all", "With zero", heating0, sep = "|") +totBefore <- paste(tot, "Initial", sep = "|") +totAfter <- paste(tot, "Final", sep = "|") # for proper plotting +totAfterZero <- paste(tot, "Final with zero", sep = "|") +heatingResBefore <- paste(tot, "Initial", heating, sep = "|") +heatingResAfter <- paste(tot, "Final", heating0, sep = "|") +heatingResAfterZero <- paste(tot, "Final with zero", heating0, sep = "|") typeRes <- paste(tot, type, sep = "|") locationRes <- paste(tot, location, sep = "|") ``` @@ -130,14 +131,8 @@ walk(locationRes, showLinePlots, data = data) #### by Space heating (initial state) ```{r Renovation-Residential-(heatingBefore)} -showAreaAndBarPlots(data, vars = heatingResBefore, tot = tot, orderVars = "user", scales = "fixed") -walk(heatingRes, showLinePlots, data = data) -``` - -#### by Space heating (initial state) -```{r Renovation-Residential-(heatingBefore)} -showAreaAndBarPlots(data, vars = heatingResBefore, tot = tot, orderVars = "user", scales = "fixed") -walk(heatingRes, showLinePlots, data = data) +showAreaAndBarPlots(data, vars = heatingResBefore, tot = totBefore, orderVars = "user", scales = "fixed") +walk(heatingResBefore, showLinePlots, data = data) ``` #### by Space heating (final state)