-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNeotoma.R
58 lines (44 loc) · 1.39 KB
/
Neotoma.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
require(neotoma)
require(mapdata)
require(ggplot2)
require(plyr)
library(devtools)
require(usethis)
require(testthat)
df <- get_dataset(taxonname = 'Neotoma*')
site.locs <- get_site(df)
# A crude way of making the oceans blue.
plot(1, type = 'n',
xlim=range(site.locs$long)+c(-10, 10),
ylim=range(site.locs$lat)+c(-10, 10),
xlab='Longitude', ylab = 'Latitude')
rect(par("usr")[1],par("usr")[3],par("usr")[2],par("usr")[4],col = "lightblue")
map('world',
interior=TRUE,
fill=TRUE,
col='gray',
xlim=range(site.locs$long)+c(-10, 10),
ylim=range(site.locs$lat)+c(-10, 10),
add=TRUE)
points(site.locs$long, site.locs$lat, pch=19, cex=0.5, col='red')
####MAMMALS####
mamm <- get_taxa(taxagroup = "MAM")
MAM <- get_dataset(taxagroup = "MAM")
site.locs <- get_site(mamm)
# A crude way of making the oceans blue.
plot(1, type = 'n',
xlim=range(site.locs$long)+c(-10, 10),
ylim=range(site.locs$lat)+c(-10, 10),
xlab='Longitude', ylab = 'Latitude')
rect(par("usr")[1],par("usr")[3],par("usr")[2],par("usr")[4],col = "lightblue")
map('world',
interior=TRUE,
fill=TRUE,
col='gray',
xlim=range(site.locs$long)+c(-10, 10),
ylim=range(site.locs$lat)+c(-10, 10),
add=TRUE)
points(site.locs$long, site.locs$lat, pch=19, cex=0.5, col='red')
sp <- get_taxa(mamm)
###NEOTOMA 2 BETA VERSION####
devtools::install_github('NeotomaDB/neotoma2', force = TRUE)