library(tidyverse)
# Geom creation -----------------------------------------------------------
StatParallelSlopes <- ggproto(
"StatParallelSlopes", Stat,
required_aes = c("x", "y"),
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
pkg_df <- devtools::session_info() %>% | |
purrr::pluck("packages") | |
pkg_df %>% | |
purrr::walk2(.x = .$package, | |
.y = .$loadedversion, | |
.f = remotes::install_version, | |
dependencies = NA, | |
upgrade = "ask") |
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(nycflights13) | |
library(tidyverse) | |
library(stringr) | |
# devtools::install_github("ismayc/infer") | |
library(infer) | |
set.seed(2017) | |
fli_small <- flights %>% | |
na.omit() %>% | |
sample_n(size = 10000) %>% | |
mutate(half_year = case_when( |
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(okcupiddata) | |
library(stringr) | |
# devtools::install_github("andrewpbray/infer") | |
library(infer) | |
library(dplyr) | |
library(ggplot2) | |
set.seed(2017) | |
prof_small <- profiles %>% | |
sample_n(size = 500) %>% | |
mutate(frisco = case_when( |
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
--- | |
title: "Example Document" | |
author: "Your name here" | |
output: | |
bookdown::gitbook | |
--- | |
# Chap 1 | |
## Sec 1 |
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(shiny) | |
inputPanel( | |
numericInput("n", label = "Sample size:", value = 300), | |
sliderInput("p", label = "Population proportion:", | |
min = 0, max = 1, value = 0.1, step = 0.01), | |
numericInput("x_min", label = "Min for x-axis:", value = 0, min = 0, max = 1), | |
numericInput("x_max", label = "Max for x-axis:", value = 1, min = 0, max = 1) | |
) |
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
--- | |
title: "Babynames (Parameterized)" | |
author: "Chester Ismay" | |
date: "August 17, 2016" | |
output: | |
html_document: | |
toc: true | |
toc_float: true | |
code_folding: show | |
code_download: true |
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
--- | |
output: pdf_document | |
lot: true | |
--- | |
# R Markdown Basics {#rmd-basics} | |
## Loading and exploring data | |
Included in this template is a link to a file called `flights.csv`. This file includes a subset of the larger dataset of information about all flights that departed from Seattle and Portland in 2014. More information about this dataset and its **R** package is available at <http://github.com/ismayc/pnwflights14>. This subset includes only Portland flights and only rows that were complete with no missing values. Merges were also done with the `airports` and `airlines` data sets in the `pnwflights14` package to get more descriptive airport and airline names. |
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
--- | |
title: "Lookup Tables" | |
output: | |
html_document: | |
toc: true | |
toc_float: true | |
--- | |
```{r setup, include=FALSE} |