Skip to content

Commit 2d91b6d

Browse files
committed
orange dot layer on choropleth
1 parent 293aa44 commit 2d91b6d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

02_choropleth.Rmd

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ starbucksNC <- starbucks %>%
8282

8383
Convert the `starbuckNC` dataframe to a spatial (sf) object and assign the same projection as the `nc_pop` spatial object.
8484

85-
```{r}
85+
```{r convert2sf}
8686
starbucksNC <- st_as_sf(starbucksNC, coords = c("Longitude", "Latitude"), crs = st_crs(nc_pop))
8787
```
8888

89-
90-
91-
Generate the map with multiple layers. You can read more about additional arguments such as `homebutton, legend, alpha, cex` in the [`mapview()` documentation](https://r-spatial.github.io/mapview/reference/mapView.html). Read about the many more mapview functions in the [full documentation](https://r-spatial.github.io/mapview/reference/index.html).
89+
Generate the map with multiple layers. You can read more about additional arguments such as `homebutton, legend, alpha, cex` in the [`mapview()` documentation](https://r-spatial.github.io/mapview/reference/mapView.html). Read about the many more mapview functions in the [full documentation](https://r-spatial.github.io/mapview/reference/).
9290

9391
```{r}
9492
mymap <- mapview(nc_pop,
@@ -98,6 +96,7 @@ mymap <- mapview(nc_pop,
9896
zcol = "Name",
9997
legend = FALSE,
10098
alpha = 0.5, cex = 3,
99+
col.regions = "orange",
101100
homebutton = FALSE)
102101
103102
addLogo(mymap, "images/Rfun3.png",
@@ -108,17 +107,19 @@ addLogo(mymap, "images/Rfun3.png",
108107
height = 100)
109108
```
110109

110+
111+
111112
## Census
112113

113-
During the workshop, and in the video recording, I will discuss the following concepts in more detail.
114+
During the workshop I will discuss the following concepts in more detail.
114115

115116
- ACS v Decennial
116117
- Variable Names / Numbers
117118
- More on Census Geography (shapefiles)
118119

119120
### Variables
120121

121-
The Census is a very large collection of data. Many casual users of Census data are interested in a single data point, for example population by County. Given the complexity and richness of available Census data, finding a useful data variable can be quite a bit of work. The links below are a some methods one might use to associate and identify the proper code name with a Census data variable.
122+
The Census is a very large collection of data. Many casual users of Census data are interested in a single data point, for example population by County. Given the complexity and richness of available Census data, finding a useful data variable can be quite a bit of work. The links below are a some methods one might use to identify the proper code name with a Census data variable.
122123

123124
- [Searching for Variables](https://walkerke.github.io/tidycensus/articles/basic-usage.html#searching-for-variables)
124125
- See Also [Tiger Metadata](https://www2.census.gov/geo/tiger/TIGER_DP/2015ACS/Metadata/STATE_METADATA_2015.txt)

0 commit comments

Comments
 (0)