Skip to content

Commit

Permalink
release: prepare `v0.4.0 (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhoffa authored Feb 29, 2024
1 parent 0e91e7a commit 90d5b7f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 28 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ Imports:
r2dii.data,
rlang,
stringr,
scales,
lifecycle
scales
Suggests:
covr,
r2dii.analysis,
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ importFrom(dplyr,tibble)
importFrom(dplyr,tribble)
importFrom(dplyr,ungroup)
importFrom(glue,glue)
importFrom(lifecycle,deprecate_soft)
importFrom(magrittr,"%>%")
importFrom(rlang,"%||%")
importFrom(rlang,.env)
Expand Down
16 changes: 7 additions & 9 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
# r2dii.plot (development version)

## Breaking change
## Breaking changes

* All `plot_*()` functions have had the data preparation step extracted into
`prep_*()` functions. This means that from now on `prep_*()` function needs
to be called on `data` prior to `plot_*()`. The APIs of `qplot_*()` functions stay
unchanged (#465).
`prep_*()` functions. This means that from now on `prep_*()` function needs to be called on `data` prior to `plot_*()`. The APIs of `qplot_*()` functions remain unchanged (#465).
* `scale_colour_r2dii` has argument renamed from `labels` to `colour_labels` (#527).

## Bug fixes
* `scale_colour_r2dii`, with input colours and levels, now outputs line plot
with correctly coloured lines (#527).

## New features

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

## Bug fixes
* `scale_colour_r2dii`, with input colours and levels, now outputs line plot with correctly coloured lines (#527).

# r2dii.plot 0.3.1

Expand Down
1 change: 0 additions & 1 deletion R/r2dii.plot-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# roxygen namespace tags. Modify with care!
## usethis namespace: start
#' @importFrom dplyr n
#' @importFrom lifecycle deprecate_soft
#' @importFrom scales percent
#' @importFrom stringr str_count
## usethis namespace: end
Expand Down
4 changes: 3 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ data <- market_share %>%
)
)
plot_trajectory(data) +
data %>%
prep_trajectory() %>%
plot_trajectory() +
labs(
title = "Power production trajectory for Renewables",
subtitle = "With reference to climate scenarios.",
Expand Down
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,15 @@ data <- market_share %>%
)
)

plot_trajectory(data) +
data %>%
prep_trajectory() %>%
plot_trajectory() +
labs(
title = "Power production trajectory for Renewables",
subtitle = "With reference to climate scenarios.",
x = "Year",
y = "Production (normalized to 2020)"
)
#> Warning: The `data` argument of `plot_trajectory()` must be prepped already as of
#> r2dii.plot 0.4.0.
#> ℹ From the next release you will need to call
#> `r2dii.plot::plot_trajectory(data)` prior to calling
#> `r2dii.plot::plot_trajectory()`.
#> ℹ Alternatively custom data preparation will also become possible.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
```

<img src="man/figures/README-unnamed-chunk-3-1.png" width="100%" style="display: block; margin: auto auto auto 0;" />
Expand Down
Binary file modified man/figures/README-unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions man/plot_techmix.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90d5b7f

Please sign in to comment.