Skip to content

Commit 5aecf7d

Browse files
andrewdolmankarawoo
authored andcommitted
Add note recommending annotate (#2113)
Add note to documentation explaining differing behaviour of geom_text, and annotate(geom = "text").
1 parent 619d01c commit 5aecf7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

R/geom-text.r

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
#' space they occupy on that plot is not constant in data units: when you
1111
#' resize a plot, labels stay the same size, but the size of the axes changes.
1212
#'
13+
#' \code{geom_text} and \code{geom_label} both add a label for each row in the
14+
#' data, even if coordinates x, y are set to single values in the call
15+
#' to \code{geom_label} or \code{geom_text}.
16+
#' To add labels at spefcified poitns use \code{\link{annotate}} with
17+
#' \code{annotate(geom = "text", ...)} or \code{annotate(geom = "label", ...)}
18+
#'
1319
#' @section Aesthetics:
1420
#' \aesthetics{geom}{text}
1521
#'

0 commit comments

Comments
 (0)