-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.Rmd
More file actions
30 lines (20 loc) · 736 Bytes
/
index.Rmd
File metadata and controls
30 lines (20 loc) · 736 Bytes
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
---
title: "Dissertation Results"
output: html_document
---
These are some results from my Dissertation. First, a map of habitat cores for Baird's Tapir.
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = F)
```
```{r message=F, warning=F}
library(leaflet)
library(rgdal)
library(raster)
options(scipen = 999)
cores = readOGR(dsn="C://Users/Cody/Documents/cores.poly.shp",layer="cores.poly", verbose=F)
cores_proj = spTransform(cores,crs("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"))
m <- leaflet(cores_proj) %>% addTiles() %>%
addPolygons(color = "#444444", weight = 1, smoothFactor = 0.5, opacity = 1.0, fillOpacity = 0.5)
m
```
There are `r round(sum(cores$sum, na.rm=T),0)` individuals in these cores.