| Name | Estimate | MOE | Year |
|---|---|---|---|
| Adams County, Washington | 82 | 82 | 2016 |
| Asotin County, Washington | 29 | 31 | 2016 |
| Benton County, Washington | 1,661 | 223 | 2016 |
| Chelan County, Washington | 266 | 133 | 2016 |
| Clallam County, Washington | 614 | 109 | 2016 |
| Clark County, Washington | 6,605 | 328 | 2016 |
| Columbia County, Washington | 15 | 17 | 2016 |
| Cowlitz County, Washington | 557 | 111 | 2016 |
| Douglas County, Washington | 128 | 80 | 2016 |
| Ferry County, Washington | 6 | 9 | 2016 |
| Franklin County, Washington | 1,626 | 179 | 2016 |
| Garfield County, Washington | 0 | 12 | 2016 |
| Grant County, Washington | 572 | 117 | 2016 |
| Grays Harbor County, Washington | 693 | 115 | 2016 |
| Island County, Washington | 1,800 | 83 | 2016 |
| Jefferson County, Washington | 163 | 45 | 2016 |
| King County, Washington | 97,284 | 1201 | 2016 |
| Kitsap County, Washington | 5,195 | 356 | 2016 |
| Kittitas County, Washington | 412 | 80 | 2016 |
| Klickitat County, Washington | 111 | 84 | 2016 |
| Lewis County, Washington | 467 | 107 | 2016 |
| Lincoln County, Washington | 26 | 20 | 2016 |
| Mason County, Washington | 841 | 286 | 2016 |
| Okanogan County, Washington | 183 | 37 | 2016 |
| Pacific County, Washington | 52 | 25 | 2016 |
| Pend Oreille County, Washington | 16 | 18 | 2016 |
| Pierce County, Washington | 44,277 | 842 | 2016 |
| San Juan County, Washington | 98 | 16 | 2016 |
| Skagit County, Washington | 717 | 82 | 2016 |
| Skamania County, Washington | 38 | 29 | 2016 |
| Snohomish County, Washington | 15,997 | 616 | 2016 |
| Spokane County, Washington | 6,724 | 343 | 2016 |
| Stevens County, Washington | 142 | 59 | 2016 |
| Thurston County, Washington | 6,577 | 364 | 2016 |
| Wahkiakum County, Washington | 5 | 9 | 2016 |
| Walla Walla County, Washington | 921 | 190 | 2016 |
| Whatcom County, Washington | 1,498 | 164 | 2016 |
| Whitman County, Washington | 764 | 137 | 2016 |
| Yakima County, Washington | 1,896 | 343 | 2016 |
---
title: "Census Data"
author: "Alicia Brown"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
social: menu
source_code: embed
---
```{r setup, include=FALSE}
options(tigris_use_cache = TRUE)
library(dplyr)
library(flexdashboard)
library(knitr)
library(kableExtra)
library(mapview)
library(tidycensus)
#S2301_C01_013E: Total!!Estimate!!RACE AND HISPANIC OR LATINO ORIGIN!!Black or African American alone
acs_data_geo <- get_acs(geography = "county", variables = "S2301_C01_013E", state = "WA", survey = "acs5", geometry = TRUE, year = 2016)
acs_data <- get_acs(geography = "county", variables = "S2301_C01_013E", state = "WA", survey = "acs5", geometry = FALSE, year = 2016)
acs_data$Year = 2016
```
Column {data-width=600}
-----------------------------------------------------------------------
### Employment Status in Washington County for Black or African American alone (S2301_C01_013E)
* ACS Summary Variable: https://api.census.gov/data/2016/acs/acs5/subject/groups/S2301.html
* TidyCensus: https://walkerke.github.io/tidycensus/
* Census API Key: http://api.census.gov/data/key_signup.html
```{r}
mapview(acs_data_geo, zcol = "estimate", legend = TRUE)
```
Column {data-width=350}
-----------------------------------------------------------------------
```{r}
# subset for table view
summary_data <- acs_data %>%
select(NAME,estimate,moe,Year) %>%
rename(Name = NAME,
Estimate = estimate,
`MOE` = moe)
summary_data$Estimate <- format(acs_data$estimate, big.mark=",")
summary_data %>%
kable() %>%
kable_styling(bootstrap_options = c("striped", "hover"))
```