Skip to content

Commit 20e4c83

Browse files
committed
redocument theme()
1 parent b1463cc commit 20e4c83

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

R/theme.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
#' between legend keys given as a `unit`. Spacing in the horizontal (x) and
8787
#' vertical (y) direction inherit from `legend.key.spacing` or can be
8888
#' specified separately. `legend.key.spacing` inherits from `spacing`.
89-
#' @param legend.key.justification Justification for positioning legend keys
89+
#' @param legend.key.just Justification for positioning legend keys
9090
#' when more space is available than needed for display. The default, `NULL`,
9191
#' stretches keys into the available space. Can be a location like `"center"`
9292
#' or `"top"`, or a two-element numeric vector.
@@ -112,11 +112,11 @@
112112
#' "vertical")
113113
#' @param legend.byrow whether the legend-matrix is filled by columns
114114
#' (`FALSE`, the default) or by rows (`TRUE`).
115-
#' @param legend.justification anchor point for positioning legend inside plot
115+
#' @param legend.just anchor point for positioning legend inside plot
116116
#' ("center" or two-element numeric vector) or the justification according to
117117
#' the plot area when positioned outside the plot
118-
#' @param legend.justification.top,legend.justification.bottom,legend.justification.left,legend.justification.right,legend.justification.inside
119-
#' Same as `legend.justification` but specified per `legend.position` option.
118+
#' @param legend.just.top,legend.just.bottom,legend.just.left,legend.just.right,legend.just.inside
119+
#' Same as `legend.just` but specified per `legend.position` option.
120120
#' @param legend.location Relative placement of legends outside the plot as a
121121
#' string. Can be `"panel"` (default) to align legends to the panels or
122122
#' `"plot"` to align legends to the plot as a whole.
@@ -280,15 +280,15 @@
280280
#'
281281
#' # Position
282282
#' p2 + theme(legend.position = "none")
283-
#' p2 + theme(legend.justification = "top")
283+
#' p2 + theme(legend.just = "top")
284284
#' p2 + theme(legend.position = "bottom")
285285
#'
286286
#' # Or place legends inside the plot using relative coordinates between 0 and 1
287-
#' # legend.justification sets the corner that the position refers to
287+
#' # legend.just sets the corner that the position refers to
288288
#' p2 + theme(
289289
#' legend.position = "inside",
290290
#' legend.position.inside = c(.95, .95),
291-
#' legend.justification = c("right", "top"),
291+
#' legend.just = c("right", "top"),
292292
#' legend.box.just = "right",
293293
#' legend.margin = margin_auto(6)
294294
#' )

man/theme.Rd

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

0 commit comments

Comments
 (0)