Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
paciorek committed Dec 5, 2024
1 parent 0d45515 commit 0836b1f
Show file tree
Hide file tree
Showing 41 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f0eb44d4
ff7d4a77
Binary file modified labs/lab0-setup.pdf
Binary file not shown.
Binary file modified labs/lab1-submission.pdf
Binary file not shown.
Binary file modified labs/lab2-testing.pdf
Binary file not shown.
Binary file modified labs/lab3-debugging.pdf
Binary file not shown.
Binary file modified labs/lab4-reproducibility.pdf
Binary file not shown.
Binary file modified labs/lab5-codereview.pdf
Binary file not shown.
Binary file modified labs/lab6-scfparallel.pdf
Binary file not shown.
Binary file modified labs/lab7-pythonvsr.pdf
Binary file not shown.
Binary file modified labs/lab8-simulation.pdf
Binary file not shown.
Binary file modified labs/lab9-git.pdf
Binary file not shown.
Binary file modified project/project.pdf
Binary file not shown.
Binary file modified ps/ps1.pdf
Binary file not shown.
Binary file modified ps/ps2.pdf
Binary file not shown.
Binary file modified ps/ps3.pdf
Binary file not shown.
Binary file modified ps/ps4.pdf
Binary file not shown.
Binary file modified ps/ps5.pdf
Binary file not shown.
Binary file modified ps/ps6.pdf
Binary file not shown.
Binary file modified ps/ps7.pdf
Binary file not shown.
Binary file modified ps/ps8.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
</url>
<url>
<loc>https://stat243.berkeley.edu/fall-2024/units/unit12-graphics.html</loc>
<lastmod>2024-12-05T18:35:26.891Z</lastmod>
<lastmod>2024-12-05T18:48:39.325Z</lastmod>
</url>
<url>
<loc>https://stat243.berkeley.edu/fall-2024/syllabus.html</loc>
Expand Down
25 changes: 25 additions & 0 deletions units/graphics_files/life_exp.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
library(tidyr)
tmp <- read.csv('life_exp.csv') %>% pivot_longer(c(starts_with(c('le','sd')))) %>%
separate(name, into = c('type','sex','education'), sep = "_")

## Hacky: this manipulation to get separate columns for life expectancy and sd
## could be done more elegantly.
data <- tmp[tmp$type == 'le', ]
sd <- tmp[tmp$type == 'sd', ]

names(data)[5] <- 'lifeexp'
data$sd <- sd$value

plot(data$lifeexp, data$sd)

## Some different ways to display the relationships.

library(ggplot2)

ggplot(data, aes(x = lifeexp, y = sd)) + geom_point() + facet_wrap(~country)
ggplot(data, aes(x = lifeexp, y = sd)) + geom_point(aes(color = sex, shape = education)) + facet_wrap(~country)

ggplot(data, aes(x = lifeexp, y = sd)) + geom_point(aes(color = education)) + facet_wrap(~sex)

ggplot(data, aes(x = lifeexp, y = sd)) + geom_point(aes(color = sex)) + facet_wrap(~education)

Binary file modified units/regex.pdf
Binary file not shown.
Binary file modified units/unit1-intro.pdf
Binary file not shown.
Binary file modified units/unit10-linalg.pdf
Binary file not shown.
Binary file modified units/unit11-optim.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion units/unit12-graphics.html
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ <h2 class="anchored" data-anchor-id="some-example-graphics">Some example graphic
<li>This <a href="https://www.nytimes.com/interactive/2024/08/02/climate/electricity-generation-us-states.html">NY Times article</a> shows the sources of electricity for the US and specific states.</li>
<li>This <a href="http://www.nytimes.com/interactive/2016/08/08/sports/olympics/history-olympic-dominance-charts.html">NY Times article</a> presents time-series graphics about how many Olympic medals have been won by different countries.</li>
</ul></li>
<li><p>Consider <a href="https://academic.oup.com/view-large/figure/81018073/dyr146f2.gif">this scatterplot of life expectancy statistics</a> from <a href="https://academic.oup.com/ije/article/40/6/1703/801755">this article</a> on variation in lifespan in European countries in the International Journal of Epidemiology. What are you able to learn from this presentation of the data. What other ways could you plot the data to better illustrate patterns in the data? The data are in <a href="graphics_files/life_exp.csv">this CSV</a> with <a href="graphics_files/liffe_exp.R">some initial exploration of plotting approaches using <code>ggplot</code> in R</a>.</p></li>
<li><p>Consider <a href="https://academic.oup.com/view-large/figure/81018073/dyr146f2.gif">this scatterplot of life expectancy statistics</a> from <a href="https://academic.oup.com/ije/article/40/6/1703/801755">this article</a> on variation in lifespan in European countries in the International Journal of Epidemiology. What are you able to learn from this presentation of the data. What other ways could you plot the data to better illustrate patterns in the data? The data are in <a href="graphics_files/life_exp.csv">this CSV</a> with <a href="graphics_files/life_exp.R">some initial exploration of plotting approaches using <code>ggplot</code> in R</a>.</p></li>
<li><p>Here’s <a href="graphics_files/exampleGraphic.png">another online graphic</a>. What aspects of the graph could be improved? What aspects do you like?</p></li>
<li><p><a href="graphics_files/shell.pdf">This file</a> in the repository has an example of a crazy pie chart from an advertisement in the NY Times from December 2014.</p></li>
<li><p><a href="graphics_files/wainer1984.pdf">This article</a> in the repository is rather old but the ideas are still relevant and while the example figures are dated in terms of appearance, the same issues arise with more modern-looking graphics.</p></li>
Expand Down
Binary file modified units/unit12-graphics.pdf
Binary file not shown.
Binary file modified units/unit12-graphics_files/figure-html/unnamed-chunk-10-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified units/unit12-graphics_files/figure-html/unnamed-chunk-3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified units/unit12-graphics_files/figure-html/unnamed-chunk-6-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified units/unit12-graphics_files/figure-html/unnamed-chunk-7-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified units/unit12-graphics_files/figure-html/unnamed-chunk-8-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified units/unit2-dataTech.pdf
Binary file not shown.
Binary file modified units/unit3-bash.pdf
Binary file not shown.
Binary file modified units/unit4-goodPractices.pdf
Binary file not shown.
Binary file modified units/unit5-programming.pdf
Binary file not shown.
Binary file modified units/unit6-parallel.pdf
Binary file not shown.
Binary file modified units/unit7-bigData.pdf
Binary file not shown.
Binary file modified units/unit8-numbers.pdf
Binary file not shown.
Binary file modified units/unit9-sim.pdf
Binary file not shown.

0 comments on commit 0836b1f

Please sign in to comment.