Skip to content

Commit 7bad805

Browse files
committed
Additional notes on legend.ticks.length
1 parent c68d9fc commit 7bad805

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/theme.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@
9393
#' @param legend.frame frame drawn around the bar ([element_rect()]).
9494
#' @param legend.ticks tick marks shown along bars or axes ([element_line()])
9595
#' @param legend.ticks.length length of tick marks in legend
96-
#' ([`unit()`][grid::unit]); inherits from `legend.key.size`.
96+
#' ([`unit()`][grid::unit]); By default, tick marks are positioned symmetrically.
97+
#' One-sided tick lengths can be controlled using absolute (`unit()`) or relative (`rel()`) values.
98+
#' For example, `unit(c(-0.15, 0), "cm")` or `rel(c(0.175, 0))` produces ticks on one side only.inherits from `legend.key.size`.
9799
#' @param legend.axis.line lines along axes in legends ([element_line()])
98100
#' @param legend.text legend item labels ([element_text()]; inherits from
99101
#' `text`)

0 commit comments

Comments
 (0)