Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
8Ginette8 authored Dec 4, 2023
1 parent 10f0a74 commit 937b35c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ obs.pt = get_gbif(sp_name="Panthera tigris",

# Plot species records
library(rnaturalearth)
plot(ne_countries(type = "countries"),col="#bcbddc")
countries = vect(ne_countries(type = "countries",returnclass = "sf"))
plot(countries,col="#bcbddc")
points(obs.pt[,c("decimalLongitude","decimalLatitude")],pch=20,col="#99340470",cex=1.5)
```

Expand All @@ -93,7 +94,7 @@ range.tiger = get_range(sp_name="Panthera tigris",
Let's plot the result now:

``` r
plot(ne_countries(type = "countries"),col="#bcbddc")
plot(countries,col="#bcbddc")
plot(range.tiger,col="#238b45",add=TRUE,axes=FALSE,legend=FALSE)
```

Expand Down Expand Up @@ -190,7 +191,7 @@ range.dd3 = get_range("Delphinus delphis",obs.dd,eco.marine,"BIOME") # Deep sea
The three results are pretty similar because most of the observations are near the coast. But let's plot the third result:

``` r
plot(ne_countries(type = "countries"),col="#bcbddc")
plot(countries,col="#bcbddc")
plot(range.dd3,col="#238b45",add=TRUE,axes=FALSE,legend=FALSE)
points(obs.dd[,c("decimalLongitude","decimalLatitude")],pch=20,col="#99340470",cex=1)
```
Expand Down

0 comments on commit 937b35c

Please sign in to comment.