generated from CU-ESIIL/Education_OASIS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating R scripts for paper 2 task 1
- Loading branch information
1 parent
cc2ae9a
commit 7e6b621
Showing
2 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# script to randomly sample regions of the 50 km buffers | ||
|
||
|
||
# packages | ||
library(sf) | ||
library(tidyverse) | ||
library(ggplot2) | ||
|
||
|
||
# read in GBIF data | ||
# only for one buffer for now | ||
gbif_dat <- read_delim("Data/GBIF data for test cases/buffer_1_data/occurrence.txt") | ||
|
||
# read in buffer geojson | ||
buffer_spatial <- st_read("Data/GBIF data for test cases/buffer_1.geojson") | ||
|
||
plot(buffer_spatial) |