Skip to content

Commit

Permalink
Merge pull request #53 from fhdsl/season4
Browse files Browse the repository at this point in the history
update with logistics fix
  • Loading branch information
laderast authored Sep 19, 2024
2 parents 6d565e8 + 25f53ed commit 5175424
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 126 deletions.
5 changes: 5 additions & 0 deletions docs/03-data-wrangling1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Data Wrangling with Tidy Data, Part 1


```
##
## The downloaded binary packages are in
## /var/folders/pq/18p2fl6n49dfgzd03mtszm6r0000gn/T//RtmpfGUaNv/downloaded_packages
```

From our first two lessons, we are now equipped with enough fundamental programming skills to apply it to various steps in the data science workflow, which is a natural cycle that occurs in data analysis.

Expand Down
5 changes: 5 additions & 0 deletions docs/04-data-wrangling2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Data Wrangling with Tidy Data, Part 2


```
##
## The downloaded binary packages are in
## /var/folders/pq/18p2fl6n49dfgzd03mtszm6r0000gn/T//RtmpMVSXo7/downloaded_packages
```

Today, we will continue learning about common functions from the Tidyverse that is useful for Tidy data manipulations.

Expand Down
33 changes: 21 additions & 12 deletions docs/05-data-visualization.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Data Visualization


```
##
## The downloaded binary packages are in
## /var/folders/pq/18p2fl6n49dfgzd03mtszm6r0000gn/T//RtmpvFOvIJ/downloaded_packages
```



Expand All @@ -22,7 +27,8 @@ ggplot(penguins) + aes(x = bill_length_mm) + geom_histogram()
## (`stat_bin()`).
```

![](05-data-visualization_files/figure-docx/unnamed-chunk-3-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-3-1.png" width="672" />


The output of all of these functions, such as from `ggplot()` or `aes()` are not data types or data structures that we are familiar with...rather, they are graphical information.

Expand Down Expand Up @@ -63,67 +69,70 @@ You add these 4 sections together to form a plot.

[ggplot(penguins)]{style="color:orange"} + [aes(x = bill_length_mm)]{style="color:green"} + [geom_histogram()]{style="color:blue"} + [theme_bw()]{style="color:purple"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-4-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-4-1.png" width="672" />

With options:

[ggplot(penguins)]{style="color:orange"} + [aes(x = bill_length_mm)]{style="color:green"} + [geom_histogram(binwidth = 5)]{style="color:blue"} + [theme_bw()]{style="color:purple"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-5-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-5-1.png" width="672" />

### Bar plots

[ggplot(penguins)]{style="color:orange"} + [aes(x = species)]{style="color:green"} + [geom_bar()]{style="color:blue"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-6-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-6-1.png" width="672" />

### Scatterplot

[ggplot(penguins)]{style="color:orange"} + [aes(x = bill_length_mm, y = bill_depth_mm)]{style="color:green"} + [geom_point()]{style="color:blue"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-7-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-7-1.png" width="672" />

### Multivaraite Scatterplot

[ggplot(penguins)]{style="color:orange"} + [aes(x = bill_length_mm, y = bill_depth_mm, color = species)]{style="color:green"} + [geom_point()]{style="color:blue"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-8-1.png)<!-- -->

<img src="05-data-visualization_files/figure-html/unnamed-chunk-8-1.png" width="672" />

### Multivaraite Scatterplot

[ggplot(penguins)]{style="color:orange"} + [aes(x = bill_length_mm, y = bill_depth_mm)]{style="color:green"} + [geom_point()]{style="color:blue"} + [facet_wrap(\~species)]{style="color:purple"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-9-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-9-1.png" width="672" />

### Line plot?

[ggplot(penguins)]{style="color:orange"} + [aes(x = bill_length_mm, y = bill_depth_mm)]{style="color:green"} + [geom_line()]{style="color:blue"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-10-1.png)<!-- -->

<img src="05-data-visualization_files/figure-html/unnamed-chunk-10-1.png" width="672" />

### Grouped Line plot?

[ggplot(penguins)]{style="color:orange"} + [aes(x = bill_length_mm, y = bill_depth_mm, group = species)]{style="color:green"} + [geom_line()]{style="color:blue"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-11-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-11-1.png" width="672" />

### Boxplot

[ggplot(penguins)]{style="color:orange"} + [aes(x = species, y = bill_depth_mm)]{style="color:green"} + [geom_boxplot()]{style="color:blue"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-12-1.png)<!-- -->

<img src="05-data-visualization_files/figure-html/unnamed-chunk-12-1.png" width="672" />

### Grouped Boxplot

[ggplot(penguins)]{style="color:orange"} + [aes(x = species, y = bill_depth_mm, color = island)]{style="color:green"} + [geom_boxplot()]{style="color:blue"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-13-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-13-1.png" width="672" />

### Some additional options

[ggplot(data = penguins)]{style="color:orange"} + [aes(x = bill_length_mm, y = bill_depth_mm, color = species)]{style="color:green"} + [geom_point()]{style="color:blue"} + [labs(x = "Bill Length", y = "Bill Depth", title = "Comparison of penguin bill length and bill depth across species") + scale_x_continuous(limits = c(30, 60))]{style="color:purple"}

![](05-data-visualization_files/figure-docx/unnamed-chunk-14-1.png)<!-- -->
<img src="05-data-visualization_files/figure-html/unnamed-chunk-14-1.png" width="672" />

## Summary of options

Expand Down
65 changes: 1 addition & 64 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page not found | Introduction to R</title>
<meta name="description" content="Page not found | Introduction to R" />
<meta name="generator" content="bookdown 0.39.1 and GitBook 2.6.7" />
<meta name="generator" content="bookdown 0.40 and GitBook 2.6.7" />

<meta property="og:title" content="Page not found | Introduction to R" />
<meta property="og:type" content="book" />
Expand Down Expand Up @@ -52,69 +52,6 @@
<script src="libs/anchor-sections-1.1.0/anchor-sections.js"></script>


<style type="text/css">
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ background-color: #f8f8f8; }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ef2929; } /* Alert */
code span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #204a87; } /* Attribute */
code span.bn { color: #0000cf; } /* BaseN */
code span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4e9a06; } /* Char */
code span.cn { color: #8f5902; } /* Constant */
code span.co { color: #8f5902; font-style: italic; } /* Comment */
code span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */
code span.dt { color: #204a87; } /* DataType */
code span.dv { color: #0000cf; } /* DecVal */
code span.er { color: #a40000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #0000cf; } /* Float */
code span.fu { color: #204a87; font-weight: bold; } /* Function */
code span.im { } /* Import */
code span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #204a87; font-weight: bold; } /* Keyword */
code span.op { color: #ce5c00; font-weight: bold; } /* Operator */
code span.ot { color: #8f5902; } /* Other */
code span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */
code span.sc { color: #ce5c00; font-weight: bold; } /* SpecialChar */
code span.ss { color: #4e9a06; } /* SpecialString */
code span.st { color: #4e9a06; } /* String */
code span.va { color: #000000; } /* Variable */
code span.vs { color: #4e9a06; } /* VerbatimString */
code span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */
</style>

<style type="text/css">

Expand Down
98 changes: 51 additions & 47 deletions docs/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,62 +41,66 @@ These credits are based on our [course contributors table guidelines](https://ww
```
## ─ Session info ───────────────────────────────────────────────────────────────
## setting value
## version R version 4.3.2 (2023-10-31)
## os Ubuntu 22.04.4 LTS
## system x86_64, linux-gnu
## version R version 4.4.1 (2024-06-14)
## os macOS Sonoma 14.6.1
## system aarch64, darwin20
## ui X11
## language (EN)
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## tz America/Los_Angeles
## date 2024-09-18
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
## pandoc 3.2.1 @ /opt/homebrew/bin/ (via rmarkdown)
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date (UTC) lib source
## bookdown 0.39.1 2024-06-11 [1] Github (rstudio/bookdown@f244cf1)
## cachem 1.0.8 2023-05-01 [1] RSPM (R 4.3.0)
## cli 3.6.2 2023-12-11 [1] RSPM (R 4.3.0)
## devtools 2.4.5 2022-10-11 [1] RSPM (R 4.3.0)
## digest 0.6.34 2024-01-11 [1] RSPM (R 4.3.0)
## ellipsis 0.3.2 2021-04-29 [1] RSPM (R 4.3.0)
## evaluate 0.23 2023-11-01 [1] RSPM (R 4.3.0)
## fastmap 1.1.1 2023-02-24 [1] RSPM (R 4.3.0)
## fs 1.6.3 2023-07-20 [1] RSPM (R 4.3.0)
## glue 1.7.0 2024-01-09 [1] RSPM (R 4.3.0)
## htmltools 0.5.7 2023-11-03 [1] RSPM (R 4.3.0)
## htmlwidgets 1.6.4 2023-12-06 [1] RSPM (R 4.3.0)
## httpuv 1.6.14 2024-01-26 [1] RSPM (R 4.3.0)
## knitr 1.47.3 2024-06-11 [1] Github (yihui/knitr@e1edd34)
## later 1.3.2 2023-12-06 [1] RSPM (R 4.3.0)
## lifecycle 1.0.4 2023-11-07 [1] RSPM (R 4.3.0)
## magrittr 2.0.3 2022-03-30 [1] RSPM (R 4.3.0)
## memoise 2.0.1 2021-11-26 [1] RSPM (R 4.3.0)
## mime 0.12 2021-09-28 [1] RSPM (R 4.3.0)
## miniUI 0.1.1.1 2018-05-18 [1] RSPM (R 4.3.0)
## pkgbuild 1.4.3 2023-12-10 [1] RSPM (R 4.3.0)
## pkgload 1.3.4 2024-01-16 [1] RSPM (R 4.3.0)
## profvis 0.3.8 2023-05-02 [1] RSPM (R 4.3.0)
## promises 1.2.1 2023-08-10 [1] RSPM (R 4.3.0)
## purrr 1.0.2 2023-08-10 [1] RSPM (R 4.3.0)
## R6 2.5.1 2021-08-19 [1] RSPM (R 4.3.0)
## Rcpp 1.0.12 2024-01-09 [1] RSPM (R 4.3.0)
## remotes 2.4.2.1 2023-07-18 [1] RSPM (R 4.3.0)
## rlang 1.1.4 2024-06-04 [1] CRAN (R 4.3.2)
## rmarkdown 2.27.1 2024-06-11 [1] Github (rstudio/rmarkdown@e1c93a9)
## sessioninfo 1.2.2 2021-12-06 [1] RSPM (R 4.3.0)
## shiny 1.8.0 2023-11-17 [1] RSPM (R 4.3.0)
## stringi 1.8.3 2023-12-11 [1] RSPM (R 4.3.0)
## stringr 1.5.1 2023-11-14 [1] RSPM (R 4.3.0)
## urlchecker 1.0.1 2021-11-30 [1] RSPM (R 4.3.0)
## usethis 2.2.3 2024-02-19 [1] RSPM (R 4.3.0)
## vctrs 0.6.5 2023-12-01 [1] RSPM (R 4.3.0)
## xfun 0.44.4 2024-06-11 [1] Github (yihui/xfun@9da62cc)
## xtable 1.8-4 2019-04-21 [1] RSPM (R 4.3.0)
## yaml 2.3.8 2023-12-11 [1] RSPM (R 4.3.0)
## bookdown 0.40 2024-07-02 [1] CRAN (R 4.4.0)
## bslib 0.7.0 2024-03-29 [1] CRAN (R 4.4.0)
## cachem 1.1.0 2024-05-16 [1] CRAN (R 4.4.0)
## cli 3.6.3 2024-06-21 [1] CRAN (R 4.4.0)
## devtools 2.4.5 2022-10-11 [1] CRAN (R 4.4.0)
## digest 0.6.36 2024-06-23 [1] CRAN (R 4.4.0)
## ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.4.0)
## evaluate 0.24.0 2024-06-10 [1] CRAN (R 4.4.0)
## fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.4.0)
## fs 1.6.4 2024-04-25 [1] CRAN (R 4.4.0)
## glue 1.7.0 2024-01-09 [1] CRAN (R 4.4.0)
## htmltools 0.5.8.1 2024-04-04 [1] CRAN (R 4.4.0)
## htmlwidgets 1.6.4 2023-12-06 [1] CRAN (R 4.4.0)
## httpuv 1.6.15 2024-03-26 [1] CRAN (R 4.4.0)
## jquerylib 0.1.4 2021-04-26 [1] CRAN (R 4.4.0)
## jsonlite 1.8.8 2023-12-04 [1] CRAN (R 4.4.0)
## knitr 1.47 2024-05-29 [1] CRAN (R 4.4.0)
## later 1.3.2 2023-12-06 [1] CRAN (R 4.4.0)
## lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.4.0)
## magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.4.0)
## memoise 2.0.1 2021-11-26 [1] CRAN (R 4.4.0)
## mime 0.12 2021-09-28 [1] CRAN (R 4.4.0)
## miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.4.0)
## pkgbuild 1.4.4 2024-03-17 [1] CRAN (R 4.4.0)
## pkgload 1.4.0 2024-06-28 [1] CRAN (R 4.4.0)
## profvis 0.3.8 2023-05-02 [1] CRAN (R 4.4.0)
## promises 1.3.0 2024-04-05 [1] CRAN (R 4.4.0)
## purrr 1.0.2 2023-08-10 [1] CRAN (R 4.4.0)
## R6 2.5.1 2021-08-19 [1] CRAN (R 4.4.0)
## Rcpp 1.0.12 2024-01-09 [1] CRAN (R 4.4.0)
## remotes 2.5.0 2024-03-17 [1] CRAN (R 4.4.0)
## rlang 1.1.4 2024-06-04 [1] CRAN (R 4.4.0)
## rmarkdown 2.27 2024-05-17 [1] CRAN (R 4.4.0)
## rstudioapi 0.16.0 2024-03-24 [1] CRAN (R 4.4.0)
## sass 0.4.9 2024-03-15 [1] CRAN (R 4.4.0)
## sessioninfo 1.2.2 2021-12-06 [1] CRAN (R 4.4.0)
## shiny 1.8.1.1 2024-04-02 [1] CRAN (R 4.4.0)
## stringi 1.8.4 2024-05-06 [1] CRAN (R 4.4.0)
## stringr 1.5.1 2023-11-14 [1] CRAN (R 4.4.0)
## urlchecker 1.0.1 2021-11-30 [1] CRAN (R 4.4.0)
## usethis 2.2.3 2024-02-19 [1] CRAN (R 4.4.0)
## vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.4.0)
## xfun 0.45 2024-06-16 [1] CRAN (R 4.4.0)
## xtable 1.8-4 2019-04-21 [1] CRAN (R 4.4.0)
## yaml 2.3.8 2023-12-11 [1] CRAN (R 4.4.0)
##
## [1] /usr/local/lib/R/site-library
## [2] /usr/local/lib/R/library
## [1] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
##
## ──────────────────────────────────────────────────────────────────────────────
```
Expand Down
8 changes: 5 additions & 3 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ After taking this course, you will be able to:

All course information will be available here:

https://hutchdatascience.org/intro_to_r
https://hutchdatascience.org/Intro_to_R

Course discussions will be done in the class slack Workspace. Invites will be sent before class.

Expand Down Expand Up @@ -120,11 +120,13 @@ There are two sections of Intro to R.
- A hybrid (in-person and online) session on Wednesdays (12-1:30 PM PST)
- A completely remote session on Thursdays (2-3:30 PM PST)

When you are enrolled, we will send you teams invites for your section.
When you are enrolled, we will send you teams invites for your section. Please note that we are at capacity for in-person. So if you have enrolled as online, please stay online.

The Hybrid Sections will be held in the Data Science Lab Lounge - Arnold M1- and online. Please note that I will in town and teaching in person on the starred (*) dates below.

Dates when I am not on campus, you are free to attend in the
Dates when I am not on campus, you are free to attend in the DaSL lounge, but I will be teaching Remotely.

If you are remote, feel free to jump between either sessions.

|Week|Subject|Hybrid Section Dates|Remote Session Dates|
|----|--------------------|--------------------|-----|
Expand Down

0 comments on commit 5175424

Please sign in to comment.