Skip to content

Commit

Permalink
update news file
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Dec 10, 2024
1 parent c2c7902 commit 2fadc0d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 35 deletions.
41 changes: 8 additions & 33 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,14 @@

# ssdtools 2.2.0

- PLACEHOLDER https://github.com/bcgov/ssdtools/pull/393 (#393).

- Merge branch 'joss-paper' of github.com:bcgov/ssdtools into joss-paper.

- Merge pull request #395 from poissonconsulting/main.

- Merge pull request #394 from beckyfisher/joss-paper-rf.

- Fix equations in vignettes. (@poissonconsulting, #392).

- Merge main.

Merge branch 'main' into joss-paper

# Conflicts:
# DESCRIPTION
# NEWS.md

- Add missing dois.

Merge branch 'main' into joss-paper


# ssdtools 2.1.0.9001

- Fixed equation rendering for vignettes on website.
- Corrected y-axis labels for bimodal plots in distributions vignette from Cumulative Probability to Probability Density.


# ssdtools 2.1.0.9000

- Same as previous version.

- Added `ssd_label_comma_hc()` function to label numbers with significant digits and comma and offset hazard concentration value if present in breaks.
- For `plot_coord_scale()` function:
- Added `x_limits = NULL` to allow setting of x-axis limits.
- Added `hc_value = NULL` to pass hazard concentration value.
- Restricted `trans` argument to `"identity"`, `"log10"` or "`log`".
- For `ssd_plot()` function:
- Added `text_size` argument.
- Soft-deprecated `size` argument for `label_size`.

# ssdtools 2.1.0

Expand Down
3 changes: 2 additions & 1 deletion R/scales.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ ssd_label_comma <- function(digits = 3, ..., big.mark = ",") {
#' ggplot2::ggplot(data = ssddata::anon_e, ggplot2::aes(x = Conc / 10)) +
#' geom_ssdpoint() +
#' ggplot2::scale_x_log10(labels = ssd_label_comma_hc(1.26))
ssd_label_comma_hc <- function(hc_value, digits = 3, big.mark = ",") {
ssd_label_comma_hc <- function(hc_value, digits = 3, ..., big.mark = ",") {
chk_number(hc_value)
chk_unused(...)

Check warning on line 61 in R/scales.R

View check run for this annotation

Codecov / codecov/patch

R/scales.R#L60-L61

Added lines #L60 - L61 were not covered by tests

function(x) {
marked <- ssd_label_comma(digits = digits, big.mark = big.mark)(x)
Expand Down
4 changes: 3 additions & 1 deletion man/ssd_label_comma_hc.Rd

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

0 comments on commit 2fadc0d

Please sign in to comment.