Skip to content

Implementation of the CHM

guxsousa edited this page Jul 5, 2018 · 1 revision

Cambridge Housing Model

The following example shows the execution of the implemented CHM in EnHub. For additional examples see the file Set_CHModel.R.

tbl.CHM.outputArchetype.der <- fnRunCHM(ArchetypeID=id.model)
tbl.CHM.outputArchetype.sub <- tbl.CHM.outputArchetype.der[1:8,1:6])

A sankey diagram may be generated to quickly examine the outcome of the function.

var.sankeyDwellingFrame <- drawDwellingInSankey(14,115,-3,105)
drawSankeyDomestic(tbl.CHM.outputArchetype.sub, 
                  var.sankeyDwellingFrame, 0.6, 1000, 
                  paste("Sankey diagram | CHM:",id.toView," EHS:",
                       as.character(tbl.EHS.buildingSet.der$aacode[id.model]),sep=""),
                       "#99A637", "#652770")

source ☟

Hughes, M., Palmer, J., & Pope, P. (2013). A Guide to The Cambridge Housing Model.

Clone this wiki locally