Skip to content

Commit 40ea4d2

Browse files
committed
document attribute plot12 returned by st_graticule(); #828
1 parent 68febed commit 40ea4d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/graticule.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
#' @details The \code{labels_function} function takes four arguments, \code{lon}, \code{lat}, \code{crs} and \code{datum}, and returns a character vector of length \code{length(lon) + length(lat)} with labels to be plotted at these \code{lon} and \code{lat} values.
2727
#' @return an object of class \code{sf} with additional attributes describing the type
2828
#' (E: meridian, N: parallel) degree value, label, start and end coordinates and angle;
29-
#' see example.
29+
#' see example. The \code{plot12} is a logical attribute that is \code{TRUE}
30+
#' for meridians crossing the bottom or parallels crossing the left side of the plot.
3031
#' @examples
3132
#' library(sf)
3233
#' library(maps)
@@ -196,7 +197,7 @@ graticule_attributes = function(df) {
196197
df
197198
}
198199

199-
trim_bb = function(bb = c(-180, -90, 180, 90), margin, wrap=c(-180,180)) {
200+
trim_bb = function(bb = c(-180, -90, 180, 90), margin, wrap = c(-180, 180)) {
200201
stopifnot(margin > 0 && margin <= 1.0)
201202
fr = 1.0 - margin
202203
if (min(bb[c(1,3)]) >= -15. && max(bb[c(1,3)]) > 195.) { # 0-360 span:

0 commit comments

Comments
 (0)