Skip to content

Commit ff389b7

Browse files
committed
beta success.
still need to understand why 02_choropleth does not produce xy when knitted
1 parent 3fe641f commit ff389b7

File tree

11 files changed

+29
-34
lines changed

11 files changed

+29
-34
lines changed

039_facet_example.Rmd

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,19 @@ output:
55
toc: FALSE
66
---
77

8-
This example code
8+
![](facet_map.png)
9+
10+
Ignoring the data wrangling, the faceted map above was created with the following simplified code. See also the [full code](038_facets_wrap_thematic_mapping.html) including wrangling and workflow.
911

1012
```{}
1113
sf_data %>%
12-
ggplot(aes(fill = Wages, color = Wages)) +
14+
ggplot(aes(fill = wages, color = wages)) +
1315
geom_sf() +
1416
coord_sf(crs = 5070, datum = NA) +
15-
scale_fill_viridis(option = "viridis") +
16-
scale_color_viridis(option = "viridis") +
17-
facet_wrap(~ category, nrow = 3, ncol = 2)
17+
scale_fill_viridis_c() +
18+
scale_color_viridis_c() +
19+
facet_wrap(~ category,
20+
nrow = 3, ncol = 2)
1821
```
1922

20-
 
21-
22-
Produced this faceted map
23-
24-
![](facet_map.png)
25-
26-
See the [code that produced the above image](038_facets_wrap_thematic_mapping.html).
23+

docs/01_georeference.html

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

docs/02_choropleth.html

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

docs/033_thematic_leaflet_example.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/039_facet_example.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,18 +327,16 @@ <h1 class="title toc-ignore">Example Faceted Thematic Mapping</h1>
327327
</div>
328328

329329

330-
<p>This example code</p>
330+
<p><img src="facet_map.png" /></p>
331+
<p>Ignoring the data wrangling, the faceted map above was created with the following simplified code. See also the <a href="038_facets_wrap_thematic_mapping.html">full code</a> including wrangling and workflow.</p>
331332
<pre><code>sf_data %&gt;%
332-
ggplot(aes(fill = Wages, color = Wages)) +
333+
ggplot(aes(fill = wages, color = wages)) +
333334
geom_sf() +
334335
coord_sf(crs = 5070, datum = NA) +
335-
scale_fill_viridis(option = &quot;viridis&quot;) +
336-
scale_color_viridis(option = &quot;viridis&quot;) +
337-
facet_wrap(~ category, nrow = 3, ncol = 2)</code></pre>
338-
<p> </p>
339-
<p>Produced this faceted map</p>
340-
<p><img src="facet_map.png" /></p>
341-
<p>See the <a href="038_facets_wrap_thematic_mapping.html">code that produced the above image</a>.</p>
336+
scale_fill_viridis_c() +
337+
scale_color_viridis_c() +
338+
facet_wrap(~ category,
339+
nrow = 3, ncol = 2)</code></pre>
342340

343341
&nbsp;
344342

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)