This lesson is called Other Formats, part of the R in 3 Months (Fall 2022) course. This lesson is called Other Formats, part of the R in 3 Months (Fall 2022) course.
To make a website using the distill package, check out this page on the distillwebsite. If you want to see a distill website in action, Tom Mock’s blog is made with it.
The best place to start with blogdown is the book blogdown: Creating Websites with R Markdown. One of the authors is Alison Hill, who I mentioned in the video has a lot of great material on blogdown. I’d suggest starting with her extensive blog post Up & Running with blogdown.
Dan Quintana also has a bunch of materials on getting started with blogdown, shown in this Twitter thread.
Every few days there’s a tweet asking how to make academic websites. This is great, everyone should have their own site! My guide is sometimes mentioned too, which is also great, but some don’t know I’ve made THREE versions: A thread, blog post, and video. Here they are ⤵️
#Load the librarieslibrary(tidyverse)library(hrbrthemes)library(scales)library(ggtext)library(extrafont)loadfonts()library(janitor)library(ggalt)library(dplyr)library(gt)library(pagedown)
#Load the dataenrollment_by_race_ethnicity%filter(district=="Beaverton SD 48J") %>%filter(year=="2018-2019") %>%ggplot(aes(x=percent_of_total_at_school,y=race_ethnicity)) +geom_col()
#How to create a line chart with geom points#Always check the space between the function and bracketsenrollment_by_race_ethnicity%>%filter(race_ethnicity==params$race_ethnicity_category) %>%ggplot(aes(x=year,y=percent_of_total_at_school,group=district)) +geom_point() +geom_line()highlight_district%filter(race_ethnicity=="Hispanic/Latino") %>%filter(district=="Douglas ESD")
#Use color to highlight findingshighlight_district%filter(race_ethnicity=="Hispanic/Latino") %>%filter(district=="Douglas ESD")enrollment_by_race_ethnicity%>%filter(race_ethnicity=="Hispanic/Latino") %>%ggplot(aes(x=year,y=percent_of_total_at_school,group=district)) +geom_line(color="lightgray",alpha=0.5) +geom_line(data=highlight_district,inherit.aes=TRUE,color="blue")
#Decluttering a graphenrollment_by_race_ethnicity%>
You need to be signed-in to comment on this post. Login.
Atlang Mompe • June 28, 2021
Hi David, this is my code below for this last exercise, can I ask why I did not get a book format based on my code:
title: "Report on Diversity in Oregon School" author: "Atlang Mompe" date: "
r Sys.Date()
" params: race_ethnicity_category: "Hispanic/Latino" output: bookdown::gitbook