Open bensoltoff opened 3 years ago
library(tidyverse)
library(here)
#> here() starts at /Users/Doublem/Desktop/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
library(tidyverse)
library(here)
#> here() starts at /private/var/folders/n5/jpwqk22132bgs57n8s5dtgz00000gn/T/RtmpSoVBYW/reprex-f646f6fc7de-sugar-cob
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/private/var/folders/n5/jpwqk22132bgs57n8s5dtgz00000gn/T/RtmpSoVBYW/reprex-f646f6fc7de-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)
SO MANY NAMES HOW DO I ORDER THINGS PLEASE HELP
## 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 /home/schuhler/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/wux21/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
library(tidyverse)
library(here)
#> here() starts at /tmp/Rtmpk849kB/reprex-2a904e640626e9-jolly-bass
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/Rtmpk849kB/reprex-2a904e640626e9-jolly-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)
library(tidyverse)
library(here)
#> here() starts at /tmp/RtmpMflDGF/reprex-2aa3c8286bda8b-irate-booby
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/RtmpMflDGF/reprex-2aa3c8286bda8b-irate-booby/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)
## 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)
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
library(tidyverse)
library(ggplot2)
library(here)
#> here() starts at /home/jemothersbaugh/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/mariiastepanenko/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/alabellehahn/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/gchalasani/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/youli21/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/zhe2042/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/dbuonauro/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/pyang2/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 /home/dbuonauro/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## 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 C:/Users/Zihe Yan/Desktop/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> -- Column specification --------------------------------------------------------
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> i Use `spec()` to retrieve the full column specification for this data.
#> i Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2021-11-04 by the reprex package (v2.0.1)
## Use the script below to generate a reproducible example
## using the reprex package. Use datapasta::dpasta() to create
## `urban` in the script rather than relying on the source
## CSV file. Once you generate it, post it on
## https://github.com/uc-cfss/reproducible-examples-and-git/issues/1
library(tidyverse)
library(here)
#> here() starts at /tmp/RtmpRVuhcO/reprex-2aa4d329f3a895-beton-fish
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/RtmpRVuhcO/reprex-2aa4d329f3a895-beton-fish/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)
## 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/Rtmp5SHWm9/reprex-2a94e1534ae8e7-sane-eyas
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/Rtmp5SHWm9/reprex-2a94e1534ae8e7-sane-eyas/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)
## 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 /home/jiang240/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /home/anjanachandran/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /home/uliana/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /home/soltoffbc/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /home/micaylaroth/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /Users/tanbaichen/Desktop/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /home/ohinhyeok/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
library(tidyverse)
library(here)
#> here() starts at /home/soltoffbc/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /home/crabtreed/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
library(tidyverse)
library(here)
#> here() starts at /home/rlin01/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
## 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 /home/rliu24/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
## 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 /home/asinai/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
library(tidyverse)
library(here)
#> here() starts at /home/julianfox/uc-cfss-reproducible-examples-and-git-d2c4ec3
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Rows: 56 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (1): state
#> dbl (1): urbanindex
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
# how do I reorder the bars from largest to smallest?
ggplot(data = urban, mapping = aes(x = state, y = urbanindex)) +
geom_col() +
coord_flip()
Created on 2022-07-05 by the reprex package (v2.0.1)
Post your reproducible example here.