Skip to content

Commit

Permalink
Remove current scenario bar from techmix (#525)
Browse files Browse the repository at this point in the history
* Remove start year scenario bar from techmix

* Update news

* Update news 2
  • Loading branch information
MonikaFu authored Dec 13, 2023
1 parent 2e305fe commit ab0bb24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# r2dii.plot (development version)

## New features

* techmix plot does not show the start year scenario bar anymore. (#513)

# r2dii.plot 0.3.1

* Gains new datasets:
Expand Down
3 changes: 2 additions & 1 deletion R/plot_techmix.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ prep_techmix <- function(data,
))
}
out <- out %>%
filter(.data$year %in% c(start_year, future_year))
filter(.data$year %in% c(start_year, future_year)) %>%
filter(!(is_scenario(.data$metric) & (.data$year == start_year)))
out
}

Expand Down

0 comments on commit ab0bb24

Please sign in to comment.