Skip to content

Commit

Permalink
Move ref and vert lines under whisker#48
Browse files Browse the repository at this point in the history
  • Loading branch information
adayim committed Sep 30, 2023
1 parent 7215433 commit c885d30
Show file tree
Hide file tree
Showing 23 changed files with 34 additions and 30 deletions.
3 changes: 0 additions & 3 deletions CRAN-SUBMISSION

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: forestploter
Title: Create Flexible Forest Plot
Version: 1.1.1
Version: 1.1.2
Authors@R: person(given="Alimu",
family = "Dayimu",
email = "ad938@cam.ac.uk",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# forestploter 1.1.2

* Draw reference line and other vertical lines under whiskers.

# forestploter 1.1.1

* Improved `ticks_digits` auto calculation.
Expand Down
3 changes: 3 additions & 0 deletions R/forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ forest <- function(data,
t = 2,
l = j,
b = tot_row, r = j,
# Make sure reference line is below the whisker
z = max(gt$layout$z[grepl("core-", gt$layout$name)]),
clip = "off",
name = paste0("ref.line-", j))

Expand All @@ -504,6 +506,7 @@ forest <- function(data,
t = 2,
l = j,
b = tot_row, r = j,
z = max(gt$layout$z[grepl("core-", gt$layout$name)]),
clip = "off",
name = paste0("vert.line-", j))

Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ There were no ERRORs or WARNINGs.

---

This version includes 1 bug fix and 6 improvement.
This version includes 1 bug fix improvement.
Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/addgrob/add-grob-body.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/addgrob/add-grob-header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/forest/arrow-end.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/forest/arrow-start.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/forest/different-sizes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/forest/edit-plot-with-theme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/forest/insert-text-vector.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c885d30

Please sign in to comment.