View source 
Instalando tidyverse
if (!require("tidyverse")) install.packages("tidyverse")
## Loading required package: tidyverse
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
## ✔ ggplot2 3.3.2 ✔ purrr 0.3.3
## ✔ tibble 3.0.0 ✔ dplyr 0.8.5
## ✔ tidyr 1.1.0 ✔ stringr 1.4.0
## ✔ readr 1.3.1 ✔ forcats 0.5.0
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
data("mtcars")
mtcars %>%
rownames_to_column("cars") %>%
mutate(cars = fct_reorder(cars, carb)) %>%
ggplot(aes(cars, carb)) +
geom_col() +
coord_flip()