Skip to content

Commit

Permalink
add exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrimas committed Aug 4, 2023
1 parent ca1947b commit 9822bcc
Show file tree
Hide file tree
Showing 9 changed files with 382 additions and 309 deletions.
659 changes: 353 additions & 306 deletions docs/ebird.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ebird_files/figure-html/ebird-pred-map-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ebird_files/figure-html/ebird-zf-map-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</url>
<url>
<loc>https://ebird.github.io/ebird-workshop-oca/ebird.html</loc>
<lastmod>2023-07-28T17:46:12.667Z</lastmod>
<lastmod>2023-08-04T21:36:41.121Z</lastmod>
</url>
<url>
<loc>https://ebird.github.io/ebird-workshop-oca/ebirdst.html</loc>
Expand Down
28 changes: 27 additions & 1 deletion ebird.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,32 @@ glimpse(checklists)
Take some time to explore the variables in the checklist dataset. If you're unsure about any of the variables, consult the metadata document that came with the data download (`eBird_Basic_Dataset_Metadata_v1.14.pdf`).
:::

For some applications, only the checklist data are required. For example, the checklist data can be used to investigate the spatial and temporal distribution of eBird data within a region. This dataset can also be used to explore how much variation there is in the observation effort variables and identify checklists that have low spatial or temporal precision.

::: {.callout-caution icon="false"}
## Exercise

Make a histogram of the distribution of distance traveling for traveling protocol checklists.
:::

::: {.callout-note icon="false" collapse="true"}
## Solution

Nearly 90% of checklists are less than 10km in length; however, some checklists are as long as 80km in length. Long traveling checklists have lower spatial precision so they should generally be removed prior to analysis.

```{r}
#| label: ebird-import-distance-sol
checklists_traveling <- filter(checklists, protocol_type == "Traveling")
ggplot(checklists_traveling) +
aes(x = effort_distance_km) +
geom_histogram(binwidth = 5) +
scale_y_continuous(limits = c(0, NA), labels = scales::comma) +
labs(x = "Distance traveled [km]",
y = "# of eBird checklists",
title = "Distribution of distance traveled on eBird checklists")
```
:::

Next, let's import the observation data.

```{r}
Expand Down Expand Up @@ -106,7 +132,7 @@ tail(checklists_unique$checklist_id)
::: callout-tip
## Tip

Curious when checklists and observers contributed to a shared checklist after it has been collapsed? The `sampling_event_identifier` and `observer_id` contain comma-separated lists of all checklists and observers that went into the shared checklists.
Curious what checklists and observers contributed to a shared checklist after it has been collapsed? The `sampling_event_identifier` and `observer_id` contain comma-separated lists of all checklists and observers that went into the shared checklists.

```{r}
#| label: ebird-import-shared-tip
Expand Down

0 comments on commit 9822bcc

Please sign in to comment.