Skip to content

Commit 8bbeef3

Browse files
committed
Merge pull request #918 from krlmlr/legend-position-doc-2
add "none" to documentation of theme() for parameter legend.position
2 parents 6ed34be + ca18e3d commit 8bbeef3

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ggplot2 0.9.3.1.99
77
* `ggpcp()`, `ggfluctuation()`, `ggmissing()`, `ggstructure()`, and
88
`ggorder()` are now defunct and have been removed.
99

10+
* Add `"none"` to documentation of `theme()` for parameter `legend.position`.
11+
(@krlmlr, #829)
12+
1013

1114
ggplot2 0.9.3.1
1215
----------------------------------------------------------------

R/theme.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ print.theme <- function(x, ...) str(x)
114114
#' (\code{element_text}; inherits from \code{title}) \cr
115115
#' legend.title.align \tab alignment of legend title
116116
#' (number from 0 (left) to 1 (right)) \cr
117-
#' legend.position \tab the position of legends.
118-
#' ("left", "right", "bottom", "top", or two-element
117+
#' legend.position \tab the position of legends
118+
#' ("none", "left", "right", "bottom", "top", or two-element
119119
#' numeric vector) \cr
120120
#' legend.direction \tab layout of items in legends
121121
#' ("horizontal" or "vertical") \cr

man/theme.Rd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ last example below.
8181
legend.title \tab title of legend (\code{element_text};
8282
inherits from \code{title}) \cr legend.title.align \tab
8383
alignment of legend title (number from 0 (left) to 1
84-
(right)) \cr legend.position \tab the position of
85-
legends. ("left", "right", "bottom", "top", or
86-
two-element numeric vector) \cr legend.direction \tab
87-
layout of items in legends ("horizontal" or "vertical")
88-
\cr legend.justification \tab anchor point for
89-
positioning legend inside plot ("center" or two-element
90-
numeric vector) \cr legend.box \tab arrangement of
91-
multiple legends ("horizontal" or "vertical") \cr
92-
legend.box.just \tab justification of each legend within
93-
the overall bounding box, when there are multiple legends
94-
("top", "bottom", "left", or "right")\cr
84+
(right)) \cr legend.position \tab the position of legends
85+
("none", "left", "right", "bottom", "top", or two-element
86+
numeric vector) \cr legend.direction \tab layout of items
87+
in legends ("horizontal" or "vertical") \cr
88+
legend.justification \tab anchor point for positioning
89+
legend inside plot ("center" or two-element numeric
90+
vector) \cr legend.box \tab arrangement of multiple
91+
legends ("horizontal" or "vertical") \cr legend.box.just
92+
\tab justification of each legend within the overall
93+
bounding box, when there are multiple legends ("top",
94+
"bottom", "left", or "right")\cr
9595

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

0 commit comments

Comments
 (0)