Skip to content

Commit bfe7f3a

Browse files
Stop cross-referencing sf functions
1 parent 6a280a9 commit bfe7f3a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

R/stat-sf-coordinates.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#'
88
#' @rdname stat_sf_coordinates
99
#' @details
10-
#' coordinates of an `sf` object can be retrieved by [sf::st_coordinates()].
10+
#' coordinates of an 'sf' object can be retrieved by `sf::st_coordinates()`.
1111
#' But, we cannot simply use `sf::st_coordinates()` because, whereas texts and
1212
#' labels require exactly one coordinate per geometry, it returns multiple ones
1313
#' for a polygon or a line. Thus, these two steps are needed:
@@ -17,8 +17,8 @@
1717
#' 2. Retrieve coordinates from the points by `sf::st_coordinates()`.
1818
#'
1919
#' For the first step, you can use an arbitrary function via `fun.geometry`.
20-
#' By default, [sf::st_point_on_surface()] is used; This seems more appropriate
21-
#' than [sf::st_centroid()] since lables and texts usually are intended to be
20+
#' By default, `sf::st_point_on_surface()` is used; This seems more appropriate
21+
#' than `sf::st_centroid()` since lables and texts usually are intended to be
2222
#' put within the polygon or the line.
2323
#'
2424
#' @section Computed variables:
@@ -32,7 +32,7 @@
3232
#' Note that, while Z and M dimensions are theoretically available, you may
3333
#' face errors because sf functions don't always support Z and M. In such cases,
3434
#' you can drop these dimensions either beforehand or in a custom `fun.geometry`
35-
#' by [sf::st_zm()].
35+
#' by `sf::st_zm()`.
3636
#'
3737
#' @examples
3838
#' if (requireNamespace("sf", quietly = TRUE)) {
@@ -50,7 +50,7 @@
5050
#' @inheritParams geom_point
5151
#' @param fun.geometry
5252
#' A function that takes a `sfc` object and returns a `sfc_POINT` with the
53-
#' same length as the input. If `NULL`, [sf::st_point_on_surface()]) will be
53+
#' same length as the input. If `NULL`, `sf::st_point_on_surface()` will be
5454
#' used. Note that the function may warn about the incorrectness of the result
5555
#' if the data is not projected, but you can ignore this except when you
5656
#' really care about the exact locations.

man/ggsf.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/stat_sf_coordinates.Rd

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

0 commit comments

Comments
 (0)