Skip to content

Commit 3011c85

Browse files
committed
slight rearrangement of occ_to_sp docs
1 parent 4a154c0 commit 3011c85

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Depends:
2323
Imports:
2424
rinat (>= 0.1.1),
2525
rbison (>= 0.3.2),
26-
rgbif (>= 0.6.0),
26+
rgbif (>= 0.6.2),
2727
ecoengine (>= 1.3),
2828
rebird (>= 0.1.1),
2929
AntWeb (>= 0.6.1),

R/occ_to_sp.r

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#' Create a spatial points dataframe from a spocc search.
22
#'
3+
#' @import sp
4+
#' @export
5+
#'
36
#' @param occObj The resuslts of a spocc search called by occ()
47
#' @param coord_string A valid EPGS cooridate string from the sp package, the default is WSGS 84
58
#' @param just_coords Return data frame with specios names and provenance or just a spatial points object, which is the default.
69
#'
710
#' @details This function will return either a spatial points dataframe or spatial points object. Conversion to spatial points objects allows spocc searches to interact with other spatial data sources. More coordinate system codes can be found at the EPGS registry: http://www.epsg-registry.org/
811
#'
9-
#' @import sp
10-
#' @export
11-
#'
1212
#' @examples \dontrun{
13-
#' library(sp) # for the spplot function below
13+
#' library("sp") # for the spplot function below
1414
#' out <- occ(query = "Populus tremuloides", from = c("inat","gbif"))
1515
#' out <- fixnames(out, "query")
1616
#' sp_points <- occ_to_sp(out)
1717
#' spplot(sp_points, "prov")
1818
#'
1919
#' ### Or see how they line up on a map
20-
#' library(maptools)
20+
#' library("maptools")
2121
#' data(wrld_simpl)
2222
#' plot(wrld_simpl[wrld_simpl$NAME == "United States", ],xlim=c(-70,-60))
2323
#' out <- occ(query = "Accipiter striatus", from = c("inat","gbif"))

man/occ_to_sp.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ This function will return either a spatial points dataframe or spatial points ob
2121
}
2222
\examples{
2323
\dontrun{
24-
library(sp) # for the spplot function below
24+
library("sp") # for the spplot function below
2525
out <- occ(query = "Populus tremuloides", from = c("inat","gbif"))
2626
out <- fixnames(out, "query")
2727
sp_points <- occ_to_sp(out)
2828
spplot(sp_points, "prov")
2929

3030
### Or see how they line up on a map
31-
library(maptools)
31+
library("maptools")
3232
data(wrld_simpl)
3333
plot(wrld_simpl[wrld_simpl$NAME == "United States", ],xlim=c(-70,-60))
3434
out <- occ(query = "Accipiter striatus", from = c("inat","gbif"))

0 commit comments

Comments
 (0)