Skip to content

Commit c468bb3

Browse files
authored
Add scale transformation note (#5268)
1 parent e4fc12d commit c468bb3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

R/geom-tile.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
#' @inheritParams geom_point
1313
#' @inheritParams geom_segment
1414
#' @export
15+
#'
16+
#' @details
17+
#' `geom_rect()` and `geom_tile()`'s respond differently to scale
18+
#' transformations due to their parametrisation. In `geom_rect()`, the scale
19+
#' transformation is applied to the corners of the rectangles. In `geom_tile()`,
20+
#' the transformation is applied only to the centres and its size is determined
21+
#' after transformation.
22+
#'
1523
#' @examples
1624
#' # The most common use for rectangles is to draw a surface. You always want
1725
#' # to use geom_raster here because it's so much faster, and produces

man/geom_tile.Rd

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

0 commit comments

Comments
 (0)