Closed bensoltoff closed 2 years ago
library(tidyverse)
library(here)
#> here() starts at /tmp/Rtmpc6RIB0/reprex17f9912d344898
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/Rtmpc6RIB0/reprex17f9912d344898/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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/duj/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/duj/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /tmp/RtmpyRPUuS/reprex17fb0050e025b6
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/RtmpyRPUuS/reprex17fb0050e025b6/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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/liu15/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/soltoffbc/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/neerajs/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/romeov/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/lisettegonzalez/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
library(tidyverse)
library(here)
#> here() starts at /home/mnjones/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/kataja/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /Users/sterlingfearing/Desktop/uc-cfss-reproducible-examples-and-git-47116e5
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-02-18 by the reprex package (v1.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /private/var/folders/zv/rv8z4v813mx97x8xfjqm7jy00000gn/T/RtmpA7FsqV/reprex153e66e26c291
# import data file
urban <- tibble::tribble(
~state, ~urbanindex,
"Alabama", 9.605935,
"Alaska", 8.735964,
"American Samoa", 11.08593,
"Arizona", 11.29971,
"Arkansas", 9.259444,
"California", 12.19028,
"Colorado", 11.15445,
"Connecticut", 11.40968,
"Delaware", 11.00999,
"District of Columbia", 13.44057,
"Florida", 11.46484,
"Georgia", 10.55233,
"Guam", 11.08593,
"Hawaii", 11.08621,
"Idaho", 9.593634,
"Illinois", 11.62372,
"Indiana", 10.4105,
"Iowa", 9.593525,
"Kansas", 10.12044,
"Kentucky", 9.789536,
"Louisiana", 10.17518,
"Maine", 9.037091,
"Maryland", 11.71105,
"Massachusetts", 11.83973,
"Michigan", 10.80559,
"Minnesota", 10.45684,
"Mississippi", 8.910859,
"Missouri", 10.20212,
"Montana", 8.470226,
"Nebraska", 10.19912,
"Nevada", 11.76972,
"New Hampshire", 9.917139,
"New Jersey", 12.23565,
"New Mexico", 9.896993,
"New York", 12.55857,
"North Carolina", 10.32481,
"North Dakota", 9.054678,
"Northern Marianas", 11.08593,
"Ohio", 10.87687,
"Oklahoma", 9.93928,
"Oregon", 10.71233,
"Pennsylvania", 11.14623,
"Puerto Rico", 11.57168,
"Rhode Island", 11.72124,
"South Carolina", 10.11142,
"South Dakota", 8.728642,
"Tennessee", 10.19729,
"Texas", 11.17488,
"Utah", 10.96281,
"Vermont", 8.843222,
"Virgin Islands", 11.08593,
"Virginia", 10.90625,
"Washington", 11.11933,
"West Virginia", 9.111112,
"Wisconsin", 10.19131,
"Wyoming", 8.256294
)
# 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-02-18 by the reprex package (v1.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/dlam8/uc-cfss-reproducible-examples-and-git-47116e5
library(datapasta)
# import data file
urban <- tibble::tribble(
~state, ~urbanindex,
"Alabama", 9.605935,
"Alaska", 8.735964,
"American Samoa", 11.08593,
"Arizona", 11.29971,
"Arkansas", 9.259444,
"California", 12.19028,
"Colorado", 11.15445,
"Connecticut", 11.40968,
"Delaware", 11.00999,
"District of Columbia", 13.44057,
"Florida", 11.46484,
"Georgia", 10.55233,
"Guam", 11.08593,
"Hawaii", 11.08621,
"Idaho", 9.593634,
"Illinois", 11.62372,
"Indiana", 10.4105,
"Iowa", 9.593525,
"Kansas", 10.12044,
"Kentucky", 9.789536,
"Louisiana", 10.17518,
"Maine", 9.037091,
"Maryland", 11.71105,
"Massachusetts", 11.83973,
"Michigan", 10.80559,
"Minnesota", 10.45684,
"Mississippi", 8.910859,
"Missouri", 10.20212,
"Montana", 8.470226,
"Nebraska", 10.19912,
"Nevada", 11.76972,
"New Hampshire", 9.917139,
"New Jersey", 12.23565,
"New Mexico", 9.896993,
"New York", 12.55857,
"North Carolina", 10.32481,
"North Dakota", 9.054678,
"Northern Marianas", 11.08593,
"Ohio", 10.87687,
"Oklahoma", 9.93928,
"Oregon", 10.71233,
"Pennsylvania", 11.14623,
"Puerto Rico", 11.57168,
"Rhode Island", 11.72124,
"South Carolina", 10.11142,
"South Dakota", 8.728642,
"Tennessee", 10.19729,
"Texas", 11.17488,
"Utah", 10.96281,
"Vermont", 8.843222,
"Virgin Islands", 11.08593,
"Virginia", 10.90625,
"Washington", 11.11933,
"West Virginia", 9.111112,
"Wisconsin", 10.19131,
"Wyoming", 8.256294
)
# 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-02-18 by the reprex package (v0.3.0)
library(tidyverse)
library(here)
#> here() starts at C:/Users/aviva/AppData/Local/Temp/Rtmp8iPnQ6/reprex420878867657
library(datapasta)
# import data file
urban <- tibble::tribble(
~state, ~urbanindex,
"Alabama", 9.605935,
"Alaska", 8.735964,
"American Samoa", 11.08593,
"Arizona", 11.29971,
"Arkansas", 9.259444,
"California", 12.19028,
"Colorado", 11.15445,
"Connecticut", 11.40968,
"Delaware", 11.00999,
"District of Columbia", 13.44057,
"Florida", 11.46484,
"Georgia", 10.55233,
"Guam", 11.08593,
"Hawaii", 11.08621,
"Idaho", 9.593634,
"Illinois", 11.62372,
"Indiana", 10.4105,
"Iowa", 9.593525,
"Kansas", 10.12044,
"Kentucky", 9.789536,
"Louisiana", 10.17518,
"Maine", 9.037091,
"Maryland", 11.71105,
"Massachusetts", 11.83973,
"Michigan", 10.80559,
"Minnesota", 10.45684,
"Mississippi", 8.910859,
"Missouri", 10.20212,
"Montana", 8.470226,
"Nebraska", 10.19912,
"Nevada", 11.76972,
"New Hampshire", 9.917139,
"New Jersey", 12.23565,
"New Mexico", 9.896993,
"New York", 12.55857,
"North Carolina", 10.32481,
"North Dakota", 9.054678,
"Northern Marianas", 11.08593,
"Ohio", 10.87687,
"Oklahoma", 9.93928,
"Oregon", 10.71233,
"Pennsylvania", 11.14623,
"Puerto Rico", 11.57168,
"Rhode Island", 11.72124,
"South Carolina", 10.11142,
"South Dakota", 8.728642,
"Tennessee", 10.19729,
"Texas", 11.17488,
"Utah", 10.96281,
"Vermont", 8.843222,
"Virgin Islands", 11.08593,
"Virginia", 10.90625,
"Washington", 11.11933,
"West Virginia", 9.111112,
"Wisconsin", 10.19131,
"Wyoming", 8.256294
)
# 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-02-18 by the reprex package (v0.3.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/giuseppedicera/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
mean(rnorm(100))
#> [1] -0.02342822
Created on 2021-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /Users/bethwang/Desktop/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /tmp/RtmpoKZLHf/reprex-15e60b6db2945d-surly-egg
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#> Error: '/tmp/RtmpoKZLHf/reprex-15e60b6db2945d-surly-egg/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-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/raydipro/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/soltoffbc/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/cslewis/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/ktakaira/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
mean(rnorm(100))
#> [1] -0.1231467
Created on 2021-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/mmrivera/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
## 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/Discussion/issues/182
##
## Hint: look at the input and outfile arguments to reprex()
library(tidyverse)
library(here)
#> here() starts at /home/agodinez7/uc-cfss-reproducible-examples-and-git-4cced8f
# import data file
urban <- read_csv(here("data", "urbanization-state.csv"))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> state = col_character(),
#> urbanindex = col_double()
#> )
# 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-07-13 by the reprex package (v2.0.0)
## 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/liutingxi/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)
Post your reproducible example here