Skip to content

Commit cd001d7

Browse files
committed
document new behaviour
1 parent 6da6532 commit cd001d7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

R/theme.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@
151151
#' from `line`
152152
#' @param panel.widths,panel.heights Sizes for panels (`units`). Can be a
153153
#' single unit to set the total size for the panel area, or a unit vector to
154-
#' set the size of individual panels. Using this setting overrides any
155-
#' aspect ratio set by the theme, coord or facets.
154+
#' set the size of individual panels. Using this setting overrides the
155+
#' aspect ratio set by the theme, coord or facets. An exception is made when
156+
#' the plot has a single panel and exactly one of the width *or* height is
157+
#' set, in which case an attempt is made to preserve the aspect ratio.
156158
#' @param panel.ontop option to place the panel (background, gridlines) over
157159
#' the data layers (`logical`). Usually used with a transparent or blank
158160
#' `panel.background`.

man/theme.Rd

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

0 commit comments

Comments
 (0)