Skip to content

Commit

Permalink
Omit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelasq committed Aug 5, 2023
1 parent 851ee15 commit 7fff348
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 10-ambarom-vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ That map (without data) is plotted. The first map is very wide as the Aleutian i
```{r}
#| label: ambarom-americas-map
#| fig.cap: "Map of North and South America"
#| error: true
country_shape <-
ne_countries(
scale = "medium",
Expand Down Expand Up @@ -361,6 +362,7 @@ To merge the data and make a map, we begin with the map file, merge the estimate
```{r}
#| label: ambarom-make-maps-covid
#| fig.cap: "Percent of people worried someone in their household will get COVID-19 in the next 3 months by country"
#| error: true
covid_sf <- country_shape_upd %>%
full_join(covid_worry_country_ests, by = c("geounit" = "Country")) %>%
full_join(covid_educ_ests, by = c("geounit" = "Country"))
Expand All @@ -385,6 +387,7 @@ ggplot() +
```{r}
#| label: ambarom-make-maps-covid-ed
#| fig.cap: "Percent of students who participated in virtual or hybrid learning"
#| error: true
ggplot() +
geom_sf(data = covid_sf, aes(fill = p_mediumchange, geometry = geometry)) +
scale_fill_gradientn(
Expand All @@ -407,6 +410,7 @@ Canada, Mexico, and the United States did not include this question, so removing
```{r}
#| label: ambarom-make-maps-covid-ed-c-s
#| fig.cap: "Percent of students who participated in virtual or hybrid learning, Central and South America"
#| error: true
covid_c_s <- covid_sf %>%
filter(region_wb == "Latin America & Caribbean")
Expand Down Expand Up @@ -451,6 +455,7 @@ int_ests %>%

```{r}
#| label: ambarom-facet-map
#| error: true
internet_sf <- country_shape_upd %>%
full_join(select(int_ests, p = p_internet, geounit = Country), by = "geounit") %>%
mutate(Type = "Internet")
Expand Down

0 comments on commit 7fff348

Please sign in to comment.