Skip to content

Commit 3af088f

Browse files
committed
Allow user control over legend.box.just
1 parent 7293109 commit 3af088f

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

NEWS

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
ggplot2 0.9.3.99
2+
----------------------------------------------------------------
3+
4+
BUG FIXES
5+
6+
* The theme element `legend.box.just` now can be set. It was not properly
7+
recognized before.
8+
19
ggplot2 0.9.3
210
----------------------------------------------------------------
311

R/theme-elements.r

+1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ el_def <- function(class = NULL, inherit = NULL, description = NULL) {
301301
legend.direction = el_def("character"),
302302
legend.justification = el_def("character"),
303303
legend.box = el_def("character"),
304+
legend.box.just = el_def("character"),
304305

305306
panel.background = el_def("element_rect", "rect"),
306307
panel.border = el_def("element_rect", "rect"),

R/theme.r

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ print.theme <- function(x, ...) str(x)
123123
#' ("center" or two-element numeric vector) \cr
124124
#' legend.box \tab arrangement of multiple legends
125125
#' ("horizontal" or "vertical") \cr
126+
#' legend.box.just \tab justification of each legend within the overall
127+
#' bounding box, when there are multiple legends
128+
#' ("top", "bottom", "left", or "right")\cr
126129
#'
127130
#' panel.background \tab background of plotting area, drawn underneath plot
128131
#' (\code{element_rect}; inherits from \code{rect}) \cr

man/theme.Rd

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
positioning legend inside plot ("center" or two-element
9292
numeric vector) \cr legend.box \tab arrangement of
9393
multiple legends ("horizontal" or "vertical") \cr
94+
legend.box.just \tab justification of each legend within
95+
the overall bounding box, when there are multiple legends
96+
("top", "bottom", "left", or "right")\cr
9497

9598
panel.background \tab background of plotting area, drawn
9699
underneath plot (\code{element_rect}; inherits from

0 commit comments

Comments
 (0)