You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Use the script below to generate a reproducible example## using the reprex package. Once you generate it, post it on## https://github.com/uc-cfss/reproducible-examples-and-git/issues/3## ## Hint: look at the input and wd arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /tmp/RtmpSket7g/reprex-2a8f344ad3f1e5-extra-bass
setwd(.)
# import data fileurban<- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/RtmpSket7g/reprex-2a8f344ad3f1e5-extra-bass/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
library(tidyverse)
library(here)
#> here() starts at /tmp/RtmpSket7g/reprex-2a8f34bfaa3f-sugar-cob
setwd(".")
# import data fileurban<- 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)
The text was updated successfully, but these errors were encountered: