-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.Rmd
More file actions
89 lines (68 loc) · 2.29 KB
/
index.Rmd
File metadata and controls
89 lines (68 loc) · 2.29 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
title: "Elk Expeditions: The Elk, the Environment, and the Evolving Migration in Yellowstone"
output:
html_document:
code_folding: hide
always_allow_html: true
toc: true
toc_float: true
---
```{r, include = FALSE}
library(tidyverse)
library(leaflet)
library(leaflet.extras2)
```
```{r, include = FALSE}
# read data
elk_df = read_csv("clean_data/elk.csv") |>
mutate(datetime = make_datetime(year, month, day, hour)) |>
dplyr::select(elk_id, datetime, lat, long)
```
---
### Welcome
<img src="pics/elk_1.jpg" alt="Description">
<center style="font-size: 10px;"> Photo from: https://www.yellowstone.org/ </center>
We will be exploring the movement of 17 female elk through Yellowstone and the Grand Tetons National Park from 2006 to 2015. Environmental factors such as weather, land cover, and water quality will be analyzed for causing differences in elk migration.
---
### Meet the Elk in Yellowstone
Hover over each point on the map to see the elk ID and time.
```{r}
# Let's make a custom elk icon!!
moose_icon <- makeIcon(
iconUrl = "pics/elk_icon.png", # Replace with the URL of your moose image
iconWidth = 30, iconHeight = 30
)
elk_df |>
filter(year(datetime) == 2012,
month(datetime) == 5) |>
leaflet() |>
addProviderTiles(providers$CartoDB.Positron, group = "Base Map") |>
addProviderTiles(providers$Esri.NatGeoWorldMap, group = "NatGeo Map") |>
addMarkers(
lng = ~long, lat = ~lat,
icon = moose_icon, # Use the custom icon
popup = ~paste("Elk ID:", elk_id, "Date", date(datetime)) # Add a popup with Elk ID
)
```
---
### Screen cast
Take a tour of our website!
```{css, echo = FALSE}
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-container iframe, .video-container object, .video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
```
<div class="video-container">
<iframe width="560" height="315" src="https://www.youtube.com/embed/GoROslWZ984?si=DQQLEp3TLWnp7xcY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<br>