Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue 3 #18

Open
mcresa opened this issue Nov 4, 2021 · 1 comment
Open

issue 3 #18

mcresa opened this issue Nov 4, 2021 · 1 comment

Comments

@mcresa
Copy link

mcresa commented Nov 4, 2021

## 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 file
urban <- 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

Created on 2021-11-04 by the reprex package (v2.0.1)

@mcresa
Copy link
Author

mcresa commented Nov 4, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant