Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rdboyes committed Apr 4, 2024
2 parents 23d6e09 + 33dee3c commit a152bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ Sort your categorical variables in order of appearance with a single keyword rat
@chain cars begin
@count(manufacturer)
@arrange(n)
ggplot(cat_inorder = true, xticklabelrotation = .5)
geom_col(@aes(y = n, x = manufacturer))
ggplot(xticklabelrotation = .5)
geom_col(aes(y = :n, x = cat_inorder(:manufacturer)))
end
```
![](assets/in_order.png)
Expand Down

0 comments on commit a152bd6

Please sign in to comment.