|
86 | 86 | #' between legend keys given as a `unit`. Spacing in the horizontal (x) and
|
87 | 87 | #' vertical (y) direction inherit from `legend.key.spacing` or can be
|
88 | 88 | #' 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 |
90 | 90 | #' when more space is available than needed for display. The default, `NULL`,
|
91 | 91 | #' stretches keys into the available space. Can be a location like `"center"`
|
92 | 92 | #' or `"top"`, or a two-element numeric vector.
|
|
112 | 112 | #' "vertical")
|
113 | 113 | #' @param legend.byrow whether the legend-matrix is filled by columns
|
114 | 114 | #' (`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 |
116 | 116 | #' ("center" or two-element numeric vector) or the justification according to
|
117 | 117 | #' 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. |
120 | 120 | #' @param legend.location Relative placement of legends outside the plot as a
|
121 | 121 | #' string. Can be `"panel"` (default) to align legends to the panels or
|
122 | 122 | #' `"plot"` to align legends to the plot as a whole.
|
|
280 | 280 | #'
|
281 | 281 | #' # Position
|
282 | 282 | #' p2 + theme(legend.position = "none")
|
283 |
| -#' p2 + theme(legend.justification = "top") |
| 283 | +#' p2 + theme(legend.just = "top") |
284 | 284 | #' p2 + theme(legend.position = "bottom")
|
285 | 285 | #'
|
286 | 286 | #' # 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 |
288 | 288 | #' p2 + theme(
|
289 | 289 | #' legend.position = "inside",
|
290 | 290 | #' legend.position.inside = c(.95, .95),
|
291 |
| -#' legend.justification = c("right", "top"), |
| 291 | +#' legend.just = c("right", "top"), |
292 | 292 | #' legend.box.just = "right",
|
293 | 293 | #' legend.margin = margin_auto(6)
|
294 | 294 | #' )
|
|
0 commit comments