class: center middle main-title section-title-1 # Communicating Statistics .class-info[ **Session 20** .light[STA 379/679: Causal Inference <br> Lucy D'Agostino McGowan ] ] --- ![](20-communicating-stats/20-communicating-stats.001.png) --- ![](20-communicating-stats/20-communicating-stats.002.png) --- ![](20-communicating-stats/20-communicating-stats.003.png) --- ![](20-communicating-stats/20-communicating-stats.004.png) --- ![](20-communicating-stats/20-communicating-stats.005.png) --- ![](20-communicating-stats/20-communicating-stats.006.png) --- ![](20-communicating-stats/20-communicating-stats.007.png) --- ![](20-communicating-stats/20-communicating-stats.008.png) --- ![](20-communicating-stats/20-communicating-stats.009.png) --- ![](20-communicating-stats/20-communicating-stats.010.png) --- ![](20-communicating-stats/20-communicating-stats.011.png) --- ![](20-communicating-stats/20-communicating-stats.012.png) --- ![](20-communicating-stats/20-communicating-stats.013.png) --- ![](20-communicating-stats/20-communicating-stats.014.png) --- ![](20-communicating-stats/20-communicating-stats.015.png) --- ![](20-communicating-stats/20-communicating-stats.016.png) --- ![](20-communicating-stats/20-communicating-stats.017.png) --- ![](20-communicating-stats/20-communicating-stats.018.png) --- ![](20-communicating-stats/20-communicating-stats.019.png) --- ![](20-communicating-stats/20-communicating-stats.020.png) --- ![](20-communicating-stats/20-communicating-stats.021.png) --- ![](20-communicating-stats/20-communicating-stats.022.png) --- ![](20-communicating-stats/20-communicating-stats.023.png) --- ![](20-communicating-stats/20-communicating-stats.024.png) --- ![](20-communicating-stats/20-communicating-stats.025.png) --- ![](20-communicating-stats/20-communicating-stats.026.png) --- class: section-title section-title-1 middle center # Putting your stats on the web! --- class: title title-1 #
Application Exercise 1. Go to Github.com and create a (public) repo called "website-demo" 2. Pull this into RStudio by creating a new project
05
:
00
--- class: title title-1 # Demo .box-1[_site.yml] .box-1[index.Rmd] .box-1[analysis.Rmd] --- class: title title-1 # YAML .box-1[We're going to start with a site configuration file called `_site.yml`] -- .box-1[This is written in YAML, it contains information about your website] --- class: title title-1 # YAML ``` name: "example-website" navbar: title: "This is an example!" left: - text: "Home" href: index.html - text: "Analysis" href: analysis.html right: - icon: fa-github fa-lg href: https://github.com/lucymcgowan output: html_document: theme: flatly ``` --- class: title title-1 #
Application Exercise 1. Using the previous example, create a YAML for your website
05
:
00
--- class: title title-1 # index.Rmd ``` --- title: "Example Website" --- This is markdown * I can include bullets ## I can include headers <img src = "img/img.jpg> I can include <i> html</i> ``` --- class: title title-1 #
Application Exercise 1. Using the previous example, create an index.Rmd file 2. Knit this file
05
:
00
--- class: title title-1 # analysis.Rmd .box-1[You can put any R Code into these Rmd files!] .box-1[For example, let's copy your lab into a file called "analysis.Rmd"] --- class: title title-1 #
Application Exercise 1. Copy your lab 04 into a file called analysis.Rmd 2. Knit this file 3. Commit and push your files to GitHub
05
:
00
--- class: title title-1 # Deploying your website ![](img/gh-settings.png) --- class: title title-1 # Deploying your website <img src="img/gh-pages.png" width= "30%"></img> --- class: title title-1 # Deploying your website ![](img/gh-main.png) --- class: title title-1 #
Application Exercise 1. Deploy your website 2. See if you can update your theme (Available themes: https://bootswatch.com/3/) 3. See if you can find different icons to include (https://fontawesome.com/icons)
05
:
00
--- class: section-title section-title-1 middle center # Personal website --- class: section-title section-title-1 middle center # `install.packages("postcards")` --- class: title title-1 center # jolla <img src="img/jolla.png" width="50%"></img> --- class: title title-1 center # jolla-blue <img src="img/jolla-blue.png" width="50%"></img> --- class: title title-1 center # trestles <img src="img/trestles.png" width="50%"></img> --- class: title title-1 center # solana <img src="img/solana.png" width="50%"></img> --- class: title title-1 center # onofre <img src="img/onofre.png" width="50%"></img> --- class: title title-1 #
Application Exercise 1. `install.packages("postcards")` 2. Create a GitHub repo named YOUR_GITHUB_HANDLE.github.io (mine would be lucymcgowan.github.io)
05
:
00
--- class: title title-1 # postcards .box-1.medium[Create a new project using a `postcards` template] <img src="img/postcards.png" width = "50%"></img> --- class: title title-1 # postcards .box-1.medium[Add version control] <img src = "img/version-control.png" width = "50%"></img> --- class: title title-1 # postcards .box-1.medium[Add version control] <center> <img src="img/git.png" width="50%"></img> </center> --- class: title title-1 # postcards .box-1.medium[Add version control] .box-1[In the terminal:] .small[ ``` git remote add origin https://github.com/YOUR-GITHUB-HANDLE.github.io.git ``` ] --- class: title title-1 #
Application Exercise 1. Create a project from the postcard template 2. Add git to your project 3. Connect to Github using the previous slide (via the terminal) 4. Update the template to reflect your details! 5. Update to enable Github pages
10
:
00
--- class: section-title section-title-1 # flexdashboard