Finding presence data for species distribution modelling (SDM)

October 20, 2010

(This article was first published on Ecological Modelling... » R, and kindly contributed to R-bloggers)

Getting presence data of species is often not easy and can be a major obstacle when attempting to model the distribution of species. One way is using the GBIF data base. Here I show one way how to obtain presence data for the wolf (Canis lupus) for Poland with R.


# get wolf presence data from gbif
wolf <- gbif("canis", "lupus", geo=T)

# get coordinates of poland
poland <- maps("world", country="poland")

# get only wolf data within poland
w.pol <- wolf[$lon, wolf$lat, poland$x, poland$y)==1,]

# plot data
map("world", "poland", fill=T, col="grey84")
points(w.pol$lon, w.pol$lat)

To leave a comment for the author, please follow the link and comment on their blog: Ecological Modelling... » R. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)