Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adayim committed Sep 23, 2023
1 parent 6da84ef commit 7215433
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* Improved `ticks_digits` auto calculation.
* Remove self righteousness cell height adjustment.
* Able to change the fontsize and alignment of the `xlab`.
* Miss seplled `backgroud` parameter in `add_grob`.

# forestploter 1.1.0

Expand Down
2 changes: 1 addition & 1 deletion R/theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#' @param arrow_fill Filling color of the arrow head, default is \code{"black"}.
#' @param arrow_col Line and text color of the arrow, same as \code{arrow_fill} by default.
#' @param arrow_cex Multiplier applied to font size for arrow label, same as \code{xaxis_cex} by default.
#' @param xlab_just Control the alignment of xlab to reference line (default) or center of the x-axis.
#' @param xlab_adjust Control the alignment of xlab to reference line (default) or center of the x-axis.
#' @param xlab_cex Multiplier applied to font size for xlab
#' @param xlab_fontface The font face for xlab, default is \code{'bold'}.
#' @param ... Other parameters passed to table. See \code{\link[gridExtra]{tableGrob}}
Expand Down
9 changes: 9 additions & 0 deletions man/forest_theme.Rd

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

1 change: 1 addition & 0 deletions man/forestploter.Rd

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

3 changes: 3 additions & 0 deletions man/make_xaxis.Rd

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

Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/testthat/test-theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ test_that("Test themes default value", {
tm <- forest_theme()
expect_type(tm, "list")
expect_equal(names(tm), c('legend', 'ci', 'xaxis', 'footnote', "title",
'arrow', 'refline', 'vertline', 'summary',
'tab_theme'))
'arrow', 'refline', 'vertline', 'xlab',
'summary', 'tab_theme'))

expect_identical(tm$legend, list(gp = gpar(fontsize = 12, fontfamily = ""),
'name' = "Group", 'position' = "right",
Expand Down

0 comments on commit 7215433

Please sign in to comment.