Skip to content

Commit 52eafac

Browse files
committed
document use of null units
1 parent 44fd15d commit 52eafac

File tree

6 files changed

+30
-39
lines changed

6 files changed

+30
-39
lines changed

R/guide-colorbar.R

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ NULL
1515
#' see [guides()].
1616
#'
1717
#' @inheritParams guide_legend
18-
#' @param barwidth A numeric or a [grid::unit()] object specifying
19-
#' the width of the colourbar. Default value is `legend.key.width` or
20-
#' `legend.key.size` in [theme()] or theme.
21-
#' @param barheight A numeric or a [grid::unit()] object specifying
22-
#' the height of the colourbar. Default value is `legend.key.height` or
23-
#' `legend.key.size` in [theme()] or theme.
18+
#' @param barwidth,barheight A numeric or [grid::unit()] object specifying the
19+
#' width and height of the bar respectively. Default value is derived from
20+
#' `legend.key.width`, `legend.key.height` or `legend.key` in [theme()].\cr
21+
#' `r lifecycle::badge("experimental")`: optionally a `"null"` unit to stretch
22+
#' the bar to the available space.
2423
#' @param frame A theme object for rendering a frame drawn around the bar.
2524
#' Usually, the object of `element_rect()` is expected. If `element_blank()`
2625
#' (default), no frame is drawn.

R/guide-legend.R

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@
3636
#' (right-aligned) for expressions.
3737
#' @param label.vjust A numeric specifying vertical justification of the label
3838
#' text.
39-
#' @param keywidth A numeric or a [grid::unit()] object specifying
40-
#' the width of the legend key. Default value is `legend.key.width` or
41-
#' `legend.key.size` in [theme()].
42-
#' @param keyheight A numeric or a [grid::unit()] object specifying
43-
#' the height of the legend key. Default value is `legend.key.height` or
44-
#' `legend.key.size` in [theme()].
39+
#' @param keywidth,keyheight A numeric or [grid::unit()] object specifying the
40+
#' width and height of the legend key respectively. Default value is
41+
#' `legend.key.width`, `legend.key.height` or `legend.key` in [theme()].\cr
42+
#' `r lifecycle::badge("experimental")`: optionally a `"null"` unit to stretch
43+
#' keys to the available space.
4544
#' @param direction A character string indicating the direction of the guide.
4645
#' One of "horizontal" or "vertical."
4746
#' @param default.unit A character string indicating [grid::unit()]

man/guide_bins.Rd

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/guide_colourbar.Rd

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/guide_coloursteps.Rd

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/guide_legend.Rd

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)