From ead94852547dd86d6e97fa983adc2ce9d0824601 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Wed, 4 Sep 2024 09:28:04 +0200 Subject: [PATCH 1/2] fix docs for `geom_text()` --- R/geom-text.R | 4 ++-- man/geom_text.Rd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/geom-text.R b/R/geom-text.R index b7f0d3f320..d12d133a75 100644 --- a/R/geom-text.R +++ b/R/geom-text.R @@ -31,8 +31,8 @@ #' #' @section Alignment: #' You can modify text alignment with the `vjust` and `hjust` -#' aesthetics. These can either be a number between 0 (right/bottom) and -#' 1 (top/left) or a character (`"left"`, `"middle"`, `"right"`, `"bottom"`, +#' aesthetics. These can either be a number between 0 (left/bottom) and +#' 1 (top/right) or a character (`"left"`, `"middle"`, `"right"`, `"bottom"`, #' `"center"`, `"top"`). There are two special alignments: `"inward"` and #' `"outward"`. Inward always aligns text towards the center, and outward #' aligns it away from the center. diff --git a/man/geom_text.Rd b/man/geom_text.Rd index 91c241ab4b..59bc7b8e69 100644 --- a/man/geom_text.Rd +++ b/man/geom_text.Rd @@ -209,8 +209,8 @@ the background colour of the label. \section{Alignment}{ You can modify text alignment with the \code{vjust} and \code{hjust} -aesthetics. These can either be a number between 0 (right/bottom) and -1 (top/left) or a character (\code{"left"}, \code{"middle"}, \code{"right"}, \code{"bottom"}, +aesthetics. These can either be a number between 0 (left/bottom) and +1 (top/right) or a character (\code{"left"}, \code{"middle"}, \code{"right"}, \code{"bottom"}, \code{"center"}, \code{"top"}). There are two special alignments: \code{"inward"} and \code{"outward"}. Inward always aligns text towards the center, and outward aligns it away from the center. From 2f8814a9186fa9ad3afb9674b04cae7d251a3e11 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Mon, 9 Sep 2024 13:15:22 +0200 Subject: [PATCH 2/2] swap top/right --- R/geom-text.R | 2 +- man/geom_text.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/geom-text.R b/R/geom-text.R index d12d133a75..ed378734ba 100644 --- a/R/geom-text.R +++ b/R/geom-text.R @@ -32,7 +32,7 @@ #' @section Alignment: #' You can modify text alignment with the `vjust` and `hjust` #' aesthetics. These can either be a number between 0 (left/bottom) and -#' 1 (top/right) or a character (`"left"`, `"middle"`, `"right"`, `"bottom"`, +#' 1 (right/top) or a character (`"left"`, `"middle"`, `"right"`, `"bottom"`, #' `"center"`, `"top"`). There are two special alignments: `"inward"` and #' `"outward"`. Inward always aligns text towards the center, and outward #' aligns it away from the center. diff --git a/man/geom_text.Rd b/man/geom_text.Rd index 59bc7b8e69..1b06e73ae1 100644 --- a/man/geom_text.Rd +++ b/man/geom_text.Rd @@ -210,7 +210,7 @@ the background colour of the label. You can modify text alignment with the \code{vjust} and \code{hjust} aesthetics. These can either be a number between 0 (left/bottom) and -1 (top/right) or a character (\code{"left"}, \code{"middle"}, \code{"right"}, \code{"bottom"}, +1 (right/top) or a character (\code{"left"}, \code{"middle"}, \code{"right"}, \code{"bottom"}, \code{"center"}, \code{"top"}). There are two special alignments: \code{"inward"} and \code{"outward"}. Inward always aligns text towards the center, and outward aligns it away from the center.