Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhcullen committed Aug 9, 2024
1 parent 2fbb647 commit 0a4b4e4
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 1 deletion.
13 changes: 12 additions & 1 deletion slides/explore-new-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,18 @@ knitr::include_graphics("images/explore-new-data/new-quarto.png")
]

---
# Objectives (Work in groups of 2 - 3)
# Work together!

* Form small groups of 2 - 3

* You can each choose a different data set to work with (or work with the same data set)

* Check in with your neighbors when you get stuck (we will come help too)

* You will share your progress with your group later on

---
# Objectives

* **Import your data** into R (anyone working with files formats other than .csv?)

Expand Down
243 changes: 243 additions & 0 deletions slides/explore-new-data.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
<!DOCTYPE html>
<html lang="" xml:lang="">
<head>
<title>Explore new data</title>
<meta charset="utf-8" />
<script src="libs/header-attrs/header-attrs.js"></script>
<link href="libs/remark-css/default.css" rel="stylesheet" />
<link href="libs/tile-view/tile-view.css" rel="stylesheet" />
<script src="libs/tile-view/tile-view.js"></script>
<link href="libs/panelset/panelset.css" rel="stylesheet" />
<script src="libs/panelset/panelset.js"></script>
<script src="libs/clipboard/clipboard.min.js"></script>
<link href="libs/shareon/shareon.min.css" rel="stylesheet" />
<script src="libs/shareon/shareon.min.js"></script>
<link href="libs/xaringanExtra-shareagain/shareagain.css" rel="stylesheet" />
<script src="libs/xaringanExtra-shareagain/shareagain.js"></script>
<link href="libs/xaringanExtra-clipboard/xaringanExtra-clipboard.css" rel="stylesheet" />
<script src="libs/xaringanExtra-clipboard/xaringanExtra-clipboard.js"></script>
<script>window.xaringanExtraClipboard('pre > code.r, pre > code.md', {"button":"Copy Code","success":"Copied!","error":"Press Ctrl+C to Copy"})</script>
<link href="libs/tachyons/tachyons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="assets/academy-theme.css" type="text/css" />
<link rel="stylesheet" href="assets/session01.css" type="text/css" />
</head>
<body>
<textarea id="source">


class:



# Explore new data

### Session 3

&lt;div class="title-footer"&gt;
&lt;img src="images/academy-logo.png"&gt;
&lt;div&gt; August 12th, 2024&lt;/div&gt;
&lt;/div&gt;





---
# Choose a new data set to explore

### Some options:

1. Your own data — e.g. a data set from work (one that others are allowed to see)

2. [Posit Academy Data Gallery](https://posit-academy.quarto.pub/data-gallery/datasets.html) - a curated list of data sets organized by industry/topic

3. [Seattle Open Data](https://data.seattle.gov/) (or some other [publicly available data](https://posit-academy.quarto.pub/data-gallery/resources.html) that interests you)

---
class:

# Getting started

&lt;img src="images/explore-new-data/campsite.png" width="70%" /&gt;

---
# Getting started

.pull-left[

.center[**Upload your data**]

&lt;img src="images/explore-new-data/upload.png" width="753" /&gt;

]

.pull-right[

.center[**Use the provided Quarto document (or create a new one)**]

&lt;img src="images/explore-new-data/new-quarto.png" width="515" /&gt;

]

---
# Work together!

* Form small groups of 2 - 3

* You can each choose a different data set to work with (or work with the same data set)

* Check in with your neighbors when you get stuck (we will come help too)

* You will share your progress with your group later on

---
# Objectives

* **Import your data** into R (anyone working with files formats other than .csv?)

* **Compute summary statistics** to better understand your data -- what types of variables do you have? How much variation is there within certain variables of interest?

* **Follow your curiosity** -- what relationships do you want to explore? Come up with one or two questions to investigate.

* **Create at least one plot and one table** to explore patterns of covariation in the data

* (Optional) **Create a rendered Quarto report**. Add formatting to your document and experiment with different output formats

## 🕒 Until coffee break (3:00 PM)
</textarea>
<style data-target="print-only">@media screen {.remark-slide-container{display:block;}.remark-slide-scaler{box-shadow:none;}}</style>
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create({
"highlightStyle": "github",
"highlightLines": true,
"countIncrementalSlides": false,
"ratio": "16:9"
});
if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) {
window.dispatchEvent(new Event('resize'));
});
(function(d) {
var s = d.createElement("style"), r = d.querySelector(".remark-slide-scaler");
if (!r) return;
s.type = "text/css"; s.innerHTML = "@page {size: " + r.style.width + " " + r.style.height +"; }";
d.head.appendChild(s);
})(document);

(function(d) {
var el = d.getElementsByClassName("remark-slides-area");
if (!el) return;
var slide, slides = slideshow.getSlides(), els = el[0].children;
for (var i = 1; i < slides.length; i++) {
slide = slides[i];
if (slide.properties.continued === "true" || slide.properties.count === "false") {
els[i - 1].className += ' has-continuation';
}
}
var s = d.createElement("style");
s.type = "text/css"; s.innerHTML = "@media print { .has-continuation { display: none; } }";
d.head.appendChild(s);
})(document);
// delete the temporary CSS (for displaying all slides initially) when the user
// starts to view slides
(function() {
var deleted = false;
slideshow.on('beforeShowSlide', function(slide) {
if (deleted) return;
var sheets = document.styleSheets, node;
for (var i = 0; i < sheets.length; i++) {
node = sheets[i].ownerNode;
if (node.dataset["target"] !== "print-only") continue;
node.parentNode.removeChild(node);
}
deleted = true;
});
})();
// add `data-at-shortcutkeys` attribute to <body> to resolve conflicts with JAWS
// screen reader (see PR #262)
(function(d) {
let res = {};
d.querySelectorAll('.remark-help-content table tr').forEach(tr => {
const t = tr.querySelector('td:nth-child(2)').innerText;
tr.querySelectorAll('td:first-child .key').forEach(key => {
const k = key.innerText;
if (/^[a-z]$/.test(k)) res[k] = t; // must be a single letter (key)
});
});
d.body.setAttribute('data-at-shortcutkeys', JSON.stringify(res));
})(document);
(function() {
"use strict"
// Replace <script> tags in slides area to make them executable
var scripts = document.querySelectorAll(
'.remark-slides-area .remark-slide-container script'
);
if (!scripts.length) return;
for (var i = 0; i < scripts.length; i++) {
var s = document.createElement('script');
var code = document.createTextNode(scripts[i].textContent);
s.appendChild(code);
var scriptAttrs = scripts[i].attributes;
for (var j = 0; j < scriptAttrs.length; j++) {
s.setAttribute(scriptAttrs[j].name, scriptAttrs[j].value);
}
scripts[i].parentElement.replaceChild(s, scripts[i]);
}
})();
(function() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (/^(https?:)?\/\//.test(links[i].getAttribute('href'))) {
links[i].target = '_blank';
}
}
})();
// adds .remark-code-has-line-highlighted class to <pre> parent elements
// of code chunks containing highlighted lines with class .remark-code-line-highlighted
(function(d) {
const hlines = d.querySelectorAll('.remark-code-line-highlighted');
const preParents = [];
const findPreParent = function(line, p = 0) {
if (p > 1) return null; // traverse up no further than grandparent
const el = line.parentElement;
return el.tagName === "PRE" ? el : findPreParent(el, ++p);
};

for (let line of hlines) {
let pre = findPreParent(line);
if (pre && !preParents.includes(pre)) preParents.push(pre);
}
preParents.forEach(p => p.classList.add("remark-code-has-line-highlighted"));
})(document);</script>

<script>
slideshow._releaseMath = function(el) {
var i, text, code, codes = el.getElementsByTagName('code');
for (i = 0; i < codes.length;) {
code = codes[i];
if (code.parentNode.tagName !== 'PRE' && code.childElementCount === 0) {
text = code.textContent;
if (/^\\\((.|\s)+\\\)$/.test(text) || /^\\\[(.|\s)+\\\]$/.test(text) ||
/^\$\$(.|\s)+\$\$$/.test(text) ||
/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(text)) {
code.outerHTML = code.innerHTML; // remove <code></code>
continue;
}
}
i++;
}
};
slideshow._releaseMath(document);
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML';
if (location.protocol !== 'file:' && /^https?:/.test(script.src))
script.src = script.src.replace(/^https?:/, '');
document.getElementsByTagName('head')[0].appendChild(script);
})();
</script>
</body>
</html>

0 comments on commit 0a4b4e4

Please sign in to comment.