Showing posts with label dismo. Show all posts
Showing posts with label dismo. Show all posts
Sunday, September 20, 2015
Retrieve GBIF Species Occurrence Data with Function from dismo Package
..The dismo package is awesome: with some short lines of code you can read & map species distribution data from GBIF (the global biodiversity information facility) easily:
Read more »
library(dismo)
# get GBIF data with function:
myrger <- gbif("Myricaria", "germanica", geo = T)
# check:
str(myrger)
# plot occurrences:
library(maptools)
data(wrld_simpl)
plot(wrld_simpl, col = "light yellow", axes = T)
points(myrger$lon, myrger$lat, col = "red", cex = 0.5)
text(-140, -50, "MYRICARIA\nGERMANICA")
Saturday, September 19, 2015
..A Quick Geo-Trick for GoogleMaps in R (using dismo)
... I thought this geocoding-bit might be worth sharing (found HERE when searching the web for dismo-documentation).
Read more »
library(dismo)
x <- geocode("Bozner Platz, Innsbruck, Tirol, Austria")
e <- extent(unlist(x[4:7]))
g <- gmap(e, type = "satellite")
plot(g)
Subscribe to:
Posts (Atom)

