-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
50 lines (44 loc) · 1.29 KB
/
index.qmd
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
---
title: "satellite-ground-truthing"
---
This repo outlines a set of habitat-class ground truth data aggregated by USF-IMaRS for use in training of satellite image processing routines.
Data provided by different sources is overviewed and standardized in the "Data Sources" reports.
An exploration of the optical properties of each class is in "Class Reports".
Data created and used here can be downloaded from [box.com/satellite_ground_truth](https://usf.box.com/s/dvis5acm0z2flxojlnjfywvv1pfvyrcx).
# example data usage
```{r setup}
# Install librarian package if you haven't already
if (!requireNamespace("librarian", quietly = TRUE)) {
install.packages("librarian")
}
library(librarian)
shelf(
dplyr,
here,
leaflet
)
```
Load NERRS data
```{r}
data <- read.csv(here("data/dwc/mangrove-jobos.csv"))
```
```{r}
#| code-summary: create map
# Create a color palette
pal <- colorFactor(palette = "viridis", domain = data$occurrenceStatus)
# Create the leaflet map
leaflet(data) %>%
addTiles() %>%
addCircleMarkers(
~lon, ~lat,
color = ~pal(occurrenceStatus),
radius = 5,
fillOpacity = 0.8,
popup = ~paste("Occurrence Status:", occurrenceStatus)
) %>%
addLegend(
"bottomright", pal = pal, values = ~occurrenceStatus,
title = "Occurrence Status",
opacity = 1
)
```