Skip to content

❗ This is a read-only mirror of the CRAN R package repository. spoccutils — Utilities for Use with 'spocc'. Homepage: https://github.com/ropensci/spoccutils Report bugs for this package: https://github.com/ropensci/spoccutils/issues

License

Notifications You must be signed in to change notification settings

cran/spoccutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spoccutils

Build Status Build status Coverage Status

Helper for spocc - a client for getting species occurrence data from many sources.

This package has utilities for:

  • Making maps, with:
    • base R
    • ggplot2
    • Leaflet
    • GitHub Gists
    • ...

We split this package off from spocc to make spocc lighter weight so that users that just want data don't have to install a bunch of other dependencies for mapping, etc.

Contributing

See CONTRIBUTING.md

Installation

Install spoccutils

install.packages("spoccutils", dependencies = TRUE)

Or the development version from GitHub

devtools::install_github("ropensci/spoccutils")
library("spoccutils")
library("spocc")

Make maps

Leaflet

spp <- c('Danaus plexippus', 'Accipiter striatus', 'Pinus contorta')
dat <- occ(query = spp, from = 'gbif', has_coords = TRUE)
map_leaflet(dat, dest = ".")

leafletmap

Github gist

dat <- fixnames(dat)
map_gist(dat, color = c("#976AAE","#6B944D","#BD5945"))

gistmap

ggplot2 family maps

ggmaps

ecoengine_data <- occ(query = 'Lynx rufus californicus', from = 'ecoengine', limit = 100)
map_ggmaps(ecoengine_data)

ggmaps

ggplot

map_ggplot(ecoengine_data, "usa")
#> Error in occ2df(x): object 'ecoengine_data' not found

ggplot2

Base R plots

map_plot(dat, cex = 1, pch = 10)

basremap

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for spoccutils in R doing citation(package = 'spoccutils')

ropensci_footer

About

❗ This is a read-only mirror of the CRAN R package repository. spoccutils — Utilities for Use with 'spocc'. Homepage: https://github.com/ropensci/spoccutils Report bugs for this package: https://github.com/ropensci/spoccutils/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published