-
-
Save sastoudt/f8ec0e308dc26ff50b407febc993779d to your computer and use it in GitHub Desktop.
Data for sample AP Stat style question about comparing histograms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
awards <- read.csv("Awards.csv") | |
awards$AwardedAmountToDate = gsub("\\$","", awards$AwardedAmountToDate) | |
awards$AwardedAmountToDate = gsub("\\,","", awards$AwardedAmountToDate) | |
awards$AwardedAmountToDate = as.numeric(awards$AwardedAmountToDate) | |
summary(awards$AwardedAmountToDate) | |
unique(awards$AwardInstrument) | |
ggplot(awards, aes(AwardedAmountToDate)) + geom_histogram(bins = 25)+ facet_wrap(~AwardInstrument, ncol = 1) + theme_minimal() + xlab("amount awarded (in $)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment