You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- TODO(michaelchirico): restore this. Site appears to be down as of this CRAN submission, seemingly temporarily -->
51
+
50
52
### Public Art in Chicago
51
53
52
-
We can use this as a simple, regular level of spatial aggregation for spatial points data, e.g., counting presence of public art throughout the city of Chicago, as captured in [this dataset](https://data.cityofchicago.org/Parks-Recreation/Parks-Public-Art/sj6t-9cju) provided by the City:
54
+
We can use this as a simple, regular level of spatial aggregation for spatial points data, e.g., counting presence of public art throughout the city of Chicago, as captured in a dataset
NB: As of this writing, the Chicago data portal is down, apparently temporarily. However I'd like to submit this package update to CRAN in order to avoid deprecation issues around {rgdal} & co, so please check back on the website for a working version of the code below.
53
61
54
62
```{r chicago_art}
55
63
## first, pull the data internally from https://data.cityofchicago.org
# art[, .N, by = .(geohash = gh_encode(LATITUDE, LONGITUDE, 6L))],
142
+
# gh_col = 'geohash'
143
+
# )
144
+
# plot(st_geometry(chicago), lwd = 0.5, main = 'Public Art Locations in Chicago')
145
+
# plot(artSF['N'], add = TRUE)
138
146
```
139
147
140
148
Chicago connoisseurs will recognize the biggest concentration around Lincoln Park, with another concentration along the waterfront near Millenium/Grant Parks.
<!-- TODO(michaelchirico): restore this. Site appears to be down as of this CRAN submission, seemingly temporarily -->
47
+
46
48
### Public Art in Chicago
47
49
48
-
We can use this as a simple, regular level of spatial aggregation for spatial points data, e.g., counting presence of public art throughout the city of Chicago, as captured in [this dataset](https://data.cityofchicago.org/Parks-Recreation/Parks-Public-Art/sj6t-9cju) provided by the City:
50
+
We can use this as a simple, regular level of spatial aggregation for spatial points data, e.g., counting presence of public art throughout the city of Chicago, as captured in a dataset
NB: As of this writing, the Chicago data portal is down, apparently temporarily. However I'd like to submit this package update to CRAN in order to avoid deprecation issues around {rgdal} & co, so please check back on the website for a working version of the code below.
49
57
50
58
51
59
```r
52
60
## first, pull the data internally from https://data.cityofchicago.org
plot(st_geometry(chicago), lwd=0.5, main='Public Art Locations in Chicago')
199
-
plot(artSF['N'], add=TRUE)
200
-
```
201
-
202
-
<divclass="figure">
203
-
<imgsrc="README-chicago_plot-1.png"alt="A viridis-color-scaled plot of Chicago overlaid with two types of polygons: (1) the erose, semi-regular map of neighborhoods; and (2) the regular, rectangular map of geohashes with public art. The salient features of the plot are further described in the README body below."width="\textwidth" />
# art[, .N, by = .(geohash = gh_encode(LATITUDE, LONGITUDE, 6L))],
190
+
# gh_col = 'geohash'
191
+
# )
192
+
# plot(st_geometry(chicago), lwd = 0.5, main = 'Public Art Locations in Chicago')
193
+
# plot(artSF['N'], add = TRUE)
194
+
```
206
195
207
196
Chicago connoisseurs will recognize the biggest concentration around Lincoln Park, with another concentration along the waterfront near Millenium/Grant Parks.
We can use this as a simple, regular level of spatial aggregation for spatial points data, e.g., counting presence of public art throughout the city of Chicago, as captured in [this dataset](https://data.cityofchicago.org/Parks-Recreation/Parks-Public-Art/sj6t-9cju) provided by the City:
54
+
We can use this as a simple, regular level of spatial aggregation for spatial points data. Here with randomly-selected coordinates:
0 commit comments