diff --git a/NEWS.md b/NEWS.md index c2383715..12bd9b4a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -10,7 +10,7 @@ # bcmaps 0.17.0 * Output of `available_layers()` has changed: `shortcut_function` column is now logical, uses better column names, and has a custom print function that gives more information. (#34) -* Add links to `combine_nr_rd()` function from `regional_districts()` and `municipalities()`. This function combines Regional Districts with the Northern Rockies Regional Municipalites to create a full provincial layer of 'Regional-District-like' polygons. +* Add links to `combine_nr_rd()` function from `regional_districts()` and `municipalities()`. This function combines Regional Districts with the Northern Rockies Regional Municipalities to create a full provincial layer of 'Regional-District-like' polygons. * Added Timber Supply Areas and BC cities shortcut function and to `available_layers()` * `bec` (and other large downloadable layers) show up in the output of `available_layers()`, `bec()` works, and `get_layer("bec")` works so that getting downloadable datasets is indistinguishable from getting local datasets. (#32) * Some utility functions use `sf` functions that have been moved to the `lwgeom` package. They now use the `lwgeom` function (Fixes CRAN CHECK NOTE; #33). @@ -71,7 +71,7 @@ functions (E.g., `bc_bound(class = "sp")` or `get_layer("bc_bound", class = "sp" # bcmaps 0.10.1 -* Fixed ring self-intersctions in `bc_bound_hres` and `airzones` (#13) +* Fixed ring self-intersections in `bc_bound_hres` and `airzones` (#13) # bcmaps 0.10.0 diff --git a/R/utils.R b/R/utils.R index db34dcae..8b0299f3 100644 --- a/R/utils.R +++ b/R/utils.R @@ -402,7 +402,7 @@ bec_colors <- bec_colours #' @param crs coordinate reference system: integer with the EPSG code, #' or character with proj4string. Default `3005` (BC Albers). #' -#' @return an object denoting a bouding box of British Columbia, +#' @return an object denoting a bounding box of British Columbia, #' of the corresponding class specified in `class`. The coordinates will be #' in lat-long WGS84 (epsg:4326). #' @export diff --git a/man/bc_bbox.Rd b/man/bc_bbox.Rd index 5cc3f069..b847ec76 100644 --- a/man/bc_bbox.Rd +++ b/man/bc_bbox.Rd @@ -13,7 +13,7 @@ bc_bbox(class = c("sf", "sp", "raster"), crs = 3005) or character with proj4string. Default \code{3005} (BC Albers).} } \value{ -an object denoting a bouding box of British Columbia, +an object denoting a bounding box of British Columbia, of the corresponding class specified in \code{class}. The coordinates will be in lat-long WGS84 (epsg:4326). } diff --git a/vignettes/add_points.Rmd b/vignettes/add_points.Rmd index 6b9f7726..d57a6737 100644 --- a/vignettes/add_points.Rmd +++ b/vignettes/add_points.Rmd @@ -17,7 +17,7 @@ knitr::opts_chunk$set(eval = requireNamespace("bcmapsdata", quietly = TRUE), fig.width = 7, fig.height = 7) ``` -We often want to be able to add point data to a map. This vignette will run through a simple example of converting a `data.frame` of latitude/longitutes into a `SpatialPointsDataFrame`, and reprojecting it so that the points can be overlaid on a layer from the `bcmaps` package. +We often want to be able to add point data to a map. This vignette will run through a simple example of converting a `data.frame` of latitude/longitude pairs into a `SpatialPointsDataFrame`, and reprojecting it so that the points can be overlaid on a layer from the `bcmaps` package. For this example, say we have done surveys for a species across B.C., and we want to be able to add the presences and absences on to a map of British Columbia. @@ -81,7 +81,7 @@ plot(spp["spp_present"], expandBB = rep(0.2, 4), graticule = TRUE) plot(st_geometry(bc_bound), add = TRUE) ``` -Now we want to know what ecoregeion of the province each of these observations +Now we want to know what ecoregion of the province each of these observations was in. We can use the `ecoregions` data from bcmaps, and the `st_join` function from the `sf` package to extract ecoregions from the point data and add that information: