Skip to content

Commit 86b0f43

Browse files
committed
fix typos
1 parent 5e204e7 commit 86b0f43

File tree

2 files changed

+320
-60
lines changed

2 files changed

+320
-60
lines changed

dataviz/gapminder.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ As a final point, we note that these distributions weigh every country the same.
639639
gapminder %>%
640640
filter(year %in% c(past_year, present_year) & country %in% country_list) %>%
641641
group_by(year) %>%
642-
mutate(weight = population/sum(population)*2) %>%
642+
mutate(weight = population/sum(population)) %>%
643643
ungroup() %>%
644644
ggplot(aes(dollars_per_day, fill = group, weight = weight)) +
645645
scale_x_continuous(trans = "log2") +
@@ -684,7 +684,7 @@ This shows a dramatic difference. While in the west less than 0.5% children die,
684684

685685
```{r}
686686
surv_income %>% ggplot(aes(income, infant_survival_rate, label = group, color = group)) +
687-
scale_x_continuous(trans = "log2", limits = c(0.25, 150)) +
687+
scale_x_continuous(trans = "log2", limit = c(0.25, 150)) +
688688
scale_y_continuous(trans = "logit", limit = c(0.875, .9981),
689689
breaks = c(.85,.90,.95,.99,.995,.998)) +
690690
geom_label(size = 3, show.legend = FALSE)
@@ -715,7 +715,7 @@ highlight <- c("Sierra Leone", "Mauritius", "Sudan", "Botswana", "Tunisia",
715715
"United States","Sweden", "Angola", "Serbia")
716716
717717
gapminder %>% filter(year %in% present_year & !is.na(gdp) & !is.na(infant_mortality) & !is.na(group) ) %>%
718-
ggplot(aes(dollars_per_day, 1 - infant_mortality/1000, col = group, label = country)) +
718+
ggplot(aes(dollars_per_day, 1 - infant_mortality/1000, color = group, label = country)) +
719719
scale_x_continuous(trans = "log2", limits=c(0.25, 150)) +
720720
scale_y_continuous(trans = "logit",limit=c(0.875, .9981),
721721
breaks=c(.85,.90,.95,.99,.995,.998)) +

dataviz/gapminder.html

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

0 commit comments

Comments
 (0)