Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
With forcats v0.3.0, this causes an error
  • Loading branch information
taekyunk committed Apr 12, 2018
1 parent cce6e44 commit 912e391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ex08_nesting-is-good.R
Expand Up @@ -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)) +
Expand Down

0 comments on commit 912e391

Please sign in to comment.