A new article created using the Distill format.
In this take-home exercise
packages = c('tidyverse', 'ggdist', 'ggridges',
'patchwork', 'ggthemes', 'hrbrthemes',
'ggrepel', 'ggforce')
for(p in packages){
if(!require(p, character.only = T)){
install.packages(p)
}
library(p, character.only = T)
}
part_data <- read_csv("data/Participants.csv")
ggplot(data=part_data,
aes(x=educationLevel)) +
geom_bar()
ggplot(data=part_data,
aes(x=householdSize)) +
geom_bar()
ggplot(data=part_data,
aes(x = age)) +
geom_histogram(bins=20,
boundary = 100,
color="grey25",
fill="grey90") +
ggtitle("Distribution of age") +
theme_economist()
ggplot(data=part_data,
aes(y = joviality, x= haveKids)) +
geom_boxplot()
Distill is a publication format for scientific and technical writing, native to the web.
Learn more about using Distill for R Markdown at https://rstudio.github.io/distill.