Open mcresa opened 2 years ago
library(tidyverse)
library(here)
#> here() starts at /tmp/RtmpSket7g/reprex-2a8f34bfaa3f-sugar-cob
setwd(".")
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/RtmpSket7g/reprex-2a8f34bfaa3f-sugar-cob/data/urbanization-state.csv' does not exist.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
#> Error in ggplot(data = urban, mapping = aes(x = state, y = urbanindex)): object 'urban' not found
Created on 2021-11-04 by the reprex package (v2.0.1)
Created on 2021-11-04 by the reprex package (v2.0.1)