Permalink
Browse files

Fix a bug

With forcats v0.3.0, this causes an error
  • Loading branch information...
taekyunk committed Apr 12, 2018
1 parent cce6e44 commit 912e391073f5f1e0249d450f3c20d9a38debb90d
Showing with 1 addition and 1 deletion.
  1. +1 −1 ex08_nesting-is-good.R
@@ -34,7 +34,7 @@ ggplot(gap, aes(x = lifeExp, y = country)) +
#' 2007, the last year in this dataset. Imagine you want this to persist across
#' an entire analysis.
gap <- gap %>%
mutate(country = fct_reorder2(country, x = year, y = lifeExp))
mutate(country = fct_reorder2(country, .x = year, .y = lifeExp))

#+ principled-order
ggplot(gap, aes(x = lifeExp, y = country)) +

0 comments on commit 912e391

Please sign in to comment.