Skip to content

Commit 22f2ae7

Browse files
Render site
1 parent ebc312f commit 22f2ae7

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

help.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,14 @@ <h2><strong>Why are my changes not taking effect? It’s making my results look
347347
<p>Here we are creating a new object from an existing one:</p>
348348
<pre class="r"><code>new_rivers &lt;- sample(rivers, 5)
349349
new_rivers</code></pre>
350-
<pre><code>## [1] 3710 500 329 291 505</code></pre>
350+
<pre><code>## [1] 301 300 570 850 327</code></pre>
351351
<p>Using just this will only print the result and not actually change <code>new_rivers</code>:</p>
352352
<pre class="r"><code>new_rivers + 1</code></pre>
353-
<pre><code>## [1] 3711 501 330 292 506</code></pre>
353+
<pre><code>## [1] 302 301 571 851 328</code></pre>
354354
<p>If we want to modify <code>new_rivers</code> and save that modified version, then we need to reassign <code>new_rivers</code> like so:</p>
355355
<pre class="r"><code>new_rivers &lt;- new_rivers + 1
356356
new_rivers</code></pre>
357-
<pre><code>## [1] 3711 501 330 292 506</code></pre>
357+
<pre><code>## [1] 302 301 571 851 328</code></pre>
358358
<p>If we forget to reassign this can cause subsequent steps to not work as expected because we will not be working with the data that has been modified.</p>
359359
<hr />
360360
</div>
@@ -403,7 +403,7 @@ <h2><strong>Error: object ‘X’ not found</strong></h2>
403403
<p>Make sure you run something like this, with the <code>&lt;-</code> operator:</p>
404404
<pre class="r"><code>rivers2 &lt;- new_rivers + 1
405405
rivers2</code></pre>
406-
<pre><code>## [1] 3712 502 331 293 507</code></pre>
406+
<pre><code>## [1] 303 302 572 852 329</code></pre>
407407
<hr />
408408
</div>
409409
<div id="error-unexpected-in-error-unexpected-in-error-unexpected-x-in" class="section level2">

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ <h2>Testimonials</h2>
333333
<h2>Find an Error!?</h2>
334334
<hr />
335335
<p>Feel free to submit typos/errors/etc via the GitHub repository associated with the class: <a href="https://github.com/jhudsl/intro_to_r" class="uri">https://github.com/jhudsl/intro_to_r</a></p>
336-
<p>This page was last updated on 2025-06-13.</p>
336+
<p>This page was last updated on 2025-06-17.</p>
337337
<p style="text-align:center;">
338338
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://live.staticflickr.com/4557/26350808799_6f9c8bcaa2_b.jpg" height="150"/> </a>
339339
</p>

modules/Data_Visualization/Data_Visualization.html

Lines changed: 13 additions & 9 deletions
Large diffs are not rendered by default.

modules/Data_Visualization/lab/Data_Visualization_Lab.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bike_agg
3838

3939
### 1.1
4040

41-
Use the `ggplot2` package to make plot of average length of lanes (`lane_avg_length`; y-axis) for each year (`dateInstalled`; x-axis). You can use lines layer (`+ geom_line()`) or points layer (`+ geom_point()`), or both!
41+
Use the object you just created (`bike_agg`) and the `ggplot2` package to make plot of average length of lanes (`lane_avg_length`; y-axis) for each year (`dateInstalled`; x-axis). You can use lines layer (`+ geom_line()`) or points layer (`+ geom_point()`), or both!
4242

4343
Assign the plot to variable `my_plot`. Type `my_plot` in the console to have it displayed.
4444

@@ -68,7 +68,7 @@ Use the `scale_x_continuous()` function to plot the x axis with the following br
6868
```
6969
# General format
7070
my_plot<- my_plot +
71-
scale_x_continuous(?????)
71+
scale_x_continuous(breaks = ?????)
7272
```
7373

7474
```{r 1.3response}

modules/Data_Visualization/lab/Data_Visualization_Lab_Key.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h1>Part 1</h1>
201201
## 8 2013 290.</code></pre>
202202
<div id="section" class="section level3">
203203
<h3>1.1</h3>
204-
<p>Use the <code>ggplot2</code> package to make plot of average length of lanes (<code>lane_avg_length</code>; y-axis) for each year (<code>dateInstalled</code>; x-axis). You can use lines layer (<code>+ geom_line()</code>) or points layer (<code>+ geom_point()</code>), or both!</p>
204+
<p>Use the object you just created (<code>bike_agg</code>) and the <code>ggplot2</code> package to make plot of average length of lanes (<code>lane_avg_length</code>; y-axis) for each year (<code>dateInstalled</code>; x-axis). You can use lines layer (<code>+ geom_line()</code>) or points layer (<code>+ geom_point()</code>), or both!</p>
205205
<p>Assign the plot to variable <code>my_plot</code>. Type <code>my_plot</code> in the console to have it displayed.</p>
206206
<pre><code># General format
207207
ggplot(???, aes(x = ???, y = ???)) +
@@ -233,7 +233,7 @@ <h3>1.3</h3>
233233
<p>Use the <code>scale_x_continuous()</code> function to plot the x axis with the following breaks <code>c(2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013)</code>.</p>
234234
<pre><code># General format
235235
my_plot&lt;- my_plot +
236-
scale_x_continuous(?????)</code></pre>
236+
scale_x_continuous(breaks = ?????)</code></pre>
237237
<pre class="r"><code>my_plot &lt;- my_plot +
238238
scale_x_continuous(
239239
breaks = c(2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013)

0 commit comments

Comments
 (0)