Skip to content

Commit

Permalink
Merge pull request #4 from taekyunk/patch-1
Browse files Browse the repository at this point in the history
Update to work with forcats v0.3.0
  • Loading branch information
jennybc authored Apr 12, 2018
2 parents cce6e44 + 912e391 commit c680d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ex08_nesting-is-good.R
Original file line number Diff line number Diff line change
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 c680d2a

Please sign in to comment.