-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
102 lines (81 loc) · 6.01 KB
/
index.Rmd
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
90
91
92
93
94
95
96
97
98
99
100
101
102
---
title: "Outdoor Equity App Technical Documentation"
author: "Clarissa Boyajian and Halina Do-Linh"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: [book.bib, packages.bib]
# url: your book url like https://bookdown.org/yihui/bookdown
# cover-image: path to the social sharing image like images/cover.jpg
classoption: openany # removes blank pages
urlcolor: blue
linkcolor: blue
link-citations: yes
geometry: margin=1in
fontsize: 11 pt
github-repo: cboyajian/outdoor-equity-tech-doc
---
# About
## Abstract
Outdoor recreation and access to nature have well-documented positive impacts on mental and physical well-being. Federal public land management agencies in the United States offer a variety of outdoor recreation activities to visitors. However, people from different socioeconomic and identity groups access federal public lands unequally due to historical discrimination and current inequities. This project uses data from the [Recreation Information Database (RIDB)](https://ridb.recreation.gov/landing) and the [United States Census Bureau (US Census)](https://www.census.gov/data.html) to explore patterns of visitor use of reservable overnight sites (such as campgrounds, cabins, hike-in, and more). Specifically, we used 2018 reservation data and US Census data from the next available year to 2018 (i.e. 2018 median income data, 2015 language data). We created the interactive [Outdoor Equity App](https://shinyapps.bren.ucsb.edu/oe_app/) that gives users tools to summarize data, explore relationships between RIDB and US Census variables, view maps of where visitors are coming from for reservable sites in California, and download subset data. This technical documentation includes information on metadata, application maintenance, and next steps for expanding the app to include visitor data from more locations and time periods.
## About the Authors
This technical documentation for the [Outdoor Equity App](https://shinyapps.bren.ucsb.edu/oe_app/) was created by [Clarissa Boyajian](https://cboyajian.github.io/) and [Halina Do-Linh](https://hdolinh.github.io/). The app was created as the final [capstone project](https://bren.ucsb.edu/projects/visualizing-visitor-use-trends-california-campsites-explore-equitable-access) for their [Master of Environmental Data Science](https://bren.ucsb.edu/masters-programs/master-environmental-data-science) degrees from the University of California's [Bren School of Environmental Science & Management](https://bren.ucsb.edu/). Both women are passionate about environmental justice, open science, the art of data visualizations, and spending time recreating outdoors. Please reach out to either of both of us with any questions.
This project could not have been completed without the support and guidance of the Bren School advisors [Dr. Frank Davis](https://bren.ucsb.edu/people/frank-davis) and [Dr. Allison Horst](https://bren.ucsb.edu/people/allison-horst) and our external advisors [Dr. Kaitlyn Gaynor](https://gaynorlab.weebly.com/people.html) and [Dr. Will Rice](https://www.willrice.us/).
## Helpful Links and Resources
The [Outdoor Equity App](https://shinyapps.bren.ucsb.edu/oe_app/) is was created with the `shiny` package [@R-shiny] using RStudio version 1.4.1717-3. This technical documentation is hosted using GitHub Pages. The GitHub repository containing all code relating to this technical documentation can be found [here](https://github.com/cboyajian/outdoor-equity-tech-doc) and the GitHub repository containing all code relating to Outdoor Equity App can be found [here](https://github.com/outdoor-equity/outdoor-equity).
```{r, include=FALSE, eval=FALSE}
# As you work, you may start a local server to live preview this HTML book.
# This preview will update as you edit the book when you save individual .Rmd files.
# You can start the server in a work session by using the RStudio add-in "Preview book", or from the R console:
bookdown::serve_book()
#To stop the server, run
servr::daemon_stop(1)
# or restart your R session
```
```{r setup, include=FALSE}
library(tidyverse)
library(here)
library(janitor)
library(lubridate)
library(vroom)
library(scales)
library(plotly)
library(tidycensus)
library(zipcodeR)
library(tmap)
library(sf)
library(rmapshaper)
library(tigris)
library(kableExtra)
#-- IMPORT DATA -- ##
# RIDB raw data
ridb_data <- read_csv(here::here("../../data_raw/reservations2018.csv"))
## CA prototype joined 2018
data_joined_2018 <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/2018_joined_data.rds")
## CA ACS all
data_ca_acs_2018 <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/2018_ca_acs_all.rds")
## data relationship 2018
data_education_relationship_plots <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/education_relationship_plots.rds")
data_language_relationship_plots <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/language_relationship_plots.rds")
data_median_income_relationship_plots <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/median_income_relationship_plots.rds")
data_race_relationship_plots <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/race_relationship_plots.rds")
## visitorsheds
data_state_geometries <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/states_geometries.rds")
data_ca_zip_code_geometries <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/ca_zip_codes_geometries.rds")
data_ca_cities_geometries <- readRDS("../outdoor-equity/outdoor-equity-app/oe_app/data/ca_cities_geometries.rds")
```
```{r include=FALSE}
# automatically create a bib database for R packages
knitr::write_bib(
c(
.packages(),
'bookdown', 'knitr', 'rmarkdown',
"tidyverse", "janitor", "lubridate", "scales", "here", "vroom",
"tidycensus", "zipcodeR", "tigris", "plotly", "tmap", "sf", "rmapshaper",
"DT", "collections", "rsconnect", "bslib", "shiny", "shinydashboard",
"shinydashboardPlus", "shinyWidgets", "shinycssloaders", "shinyjs",
"reactlog", "shinytest", "shinyloadtest",
"testthat", "tictoc"
),
'packages.bib')
```