Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve or drop barplotFloworImpactFractionbyRegion() #310

Open
WesIngwersen opened this issue Aug 6, 2024 · 1 comment
Open

Improve or drop barplotFloworImpactFractionbyRegion() #310

WesIngwersen opened this issue Aug 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@WesIngwersen
Copy link
Collaborator

barplotFloworImpactFractionbyRegion <- function(R1_calc_result, Total_calc_result, x_title) {

Not easy at all to use - takes a R1_calc_result A matrix from model result which is for one region supposedly but this is very unclear in how to derive this because its not defined anyway

@WesIngwersen WesIngwersen added the enhancement New feature or request label Aug 6, 2024
@WesIngwersen
Copy link
Collaborator Author

well there is an example on its use here but its not clear how well it would work for models with multiple regions

```{r "domestic_proportion_impact_USconsumption_v2.0.1", include=FALSE, fig.height = 12, fig.width = 12}
fullcons <- calculateEEIOModel(model, perspective = "DIRECT", demand = "Consumption", use_domestic_requirements = FALSE)
domcons <- calculateEEIOModel(model, perspective = "DIRECT", demand = "Consumption", use_domestic_requirements = TRUE)
barplotFloworImpactFractionbyRegion(R1_calc_result = domcons$LCIA_d, Total_calc_result = fullcons$LCIA_d, x_title = "")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant