Skip to content

Commit 627efa2

Browse files
committed
Completed first draft
1 parent 6e24c3b commit 627efa2

32 files changed

Lines changed: 3726 additions & 580 deletions

_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ website:
4444
contents:
4545
- lessons/05_uploading_downloading_data.qmd
4646
- lessons/06_layouts.qmd
47-
- lessons/07_hosting.qmd
47+
- lessons/07b_hosting.qmd
4848
- lessons/08_layout_practical.qmd
4949

5050
format:

docs/lessons/01_syntax_and_structure.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@
228228
</li>
229229
<li class="sidebar-item">
230230
<div class="sidebar-item-container">
231-
<a href="../lessons/07_hosting.html" class="sidebar-item-text sidebar-link">
231+
<a href="../lessons/07b_hosting.html" class="sidebar-item-text sidebar-link">
232232
<span class="menu-text">Hosting Options for RShiny Apps</span></a>
233233
</div>
234234
</li>
235235
<li class="sidebar-item">
236236
<div class="sidebar-item-container">
237237
<a href="../lessons/08_layout_practical.html" class="sidebar-item-text sidebar-link">
238-
<span class="menu-text">Practical Exercise</span></a>
238+
<span class="menu-text">Layout Practical</span></a>
239239
</div>
240240
</li>
241241
</ul>

docs/lessons/02_inputs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@
228228
</li>
229229
<li class="sidebar-item">
230230
<div class="sidebar-item-container">
231-
<a href="../lessons/07_hosting.html" class="sidebar-item-text sidebar-link">
231+
<a href="../lessons/07b_hosting.html" class="sidebar-item-text sidebar-link">
232232
<span class="menu-text">Hosting Options for RShiny Apps</span></a>
233233
</div>
234234
</li>
235235
<li class="sidebar-item">
236236
<div class="sidebar-item-container">
237237
<a href="../lessons/08_layout_practical.html" class="sidebar-item-text sidebar-link">
238-
<span class="menu-text">Practical Exercise</span></a>
238+
<span class="menu-text">Layout Practical</span></a>
239239
</div>
240240
</li>
241241
</ul>

docs/lessons/03_visuals.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@
228228
</li>
229229
<li class="sidebar-item">
230230
<div class="sidebar-item-container">
231-
<a href="../lessons/07_hosting.html" class="sidebar-item-text sidebar-link">
231+
<a href="../lessons/07b_hosting.html" class="sidebar-item-text sidebar-link">
232232
<span class="menu-text">Hosting Options for RShiny Apps</span></a>
233233
</div>
234234
</li>
235235
<li class="sidebar-item">
236236
<div class="sidebar-item-container">
237237
<a href="../lessons/08_layout_practical.html" class="sidebar-item-text sidebar-link">
238-
<span class="menu-text">Practical Exercise</span></a>
238+
<span class="menu-text">Layout Practical</span></a>
239239
</div>
240240
</li>
241241
</ul>

docs/lessons/04_input_output_practical.html

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@
228228
</li>
229229
<li class="sidebar-item">
230230
<div class="sidebar-item-container">
231-
<a href="../lessons/07_hosting.html" class="sidebar-item-text sidebar-link">
231+
<a href="../lessons/07b_hosting.html" class="sidebar-item-text sidebar-link">
232232
<span class="menu-text">Hosting Options for RShiny Apps</span></a>
233233
</div>
234234
</li>
235235
<li class="sidebar-item">
236236
<div class="sidebar-item-container">
237237
<a href="../lessons/08_layout_practical.html" class="sidebar-item-text sidebar-link">
238-
<span class="menu-text">Practical Exercise</span></a>
238+
<span class="menu-text">Layout Practical</span></a>
239239
</div>
240240
</li>
241241
</ul>
@@ -312,7 +312,10 @@ <h2 id="toc-title">On this page</h2>
312312
<section id="input-and-output-practical" class="level1">
313313
<h1>Input and Output Practical</h1>
314314
<p>In this practical we are going to create the app below:</p>
315-
<p><strong>Create app</strong></p>
315+
<p align="center">
316+
<iframe src="https://hcbc.connect.hms.harvard.edu/input_output_practical_demo/" width="800" height="600px" data-external="1">
317+
</iframe>
318+
</p>
316319
<p>This app let’s us select the columns that we would like to plot and then allows us to use a brush on our plot select an area of points that we are interested in evaluating.</p>
317320
<div class="callout callout-style-default callout-tip callout-titled">
318321
<div class="callout-header d-flex align-content-center">
@@ -833,29 +836,30 @@ <h1>Input and Output Practical</h1>
833836
<span id="cb1-38"><a href="#cb1-38" aria-hidden="true" tabindex="-1"></a></span>
834837
<span id="cb1-39"><a href="#cb1-39" aria-hidden="true" tabindex="-1"></a>In this practical we are going to create the app below:</span>
835838
<span id="cb1-40"><a href="#cb1-40" aria-hidden="true" tabindex="-1"></a></span>
836-
<span id="cb1-41"><a href="#cb1-41" aria-hidden="true" tabindex="-1"></a>**Create app**</span>
839+
<span id="cb1-41"><a href="#cb1-41" aria-hidden="true" tabindex="-1"></a><span class="dt">&lt;</span><span class="kw">p</span><span class="ot"> align</span><span class="op">=</span><span class="st">"center"</span><span class="dt">&gt;&lt;</span><span class="kw">iframe</span><span class="ot"> src</span><span class="op">=</span><span class="st">"https://hcbc.connect.hms.harvard.edu/input_output_practical_demo/"</span><span class="ot"> width</span><span class="op">=</span><span class="st">"800"</span><span class="ot"> height</span><span class="op">=</span><span class="st">"600px"</span><span class="ot"> data-external</span><span class="op">=</span><span class="st">"1"</span><span class="dt">&gt;&lt;/</span><span class="kw">iframe</span><span class="dt">&gt;&lt;/</span><span class="kw">p</span><span class="dt">&gt;</span></span>
837840
<span id="cb1-42"><a href="#cb1-42" aria-hidden="true" tabindex="-1"></a></span>
838-
<span id="cb1-43"><a href="#cb1-43" aria-hidden="true" tabindex="-1"></a>This app let's us select the columns that we would like to plot and then allows us to use a brush on our plot select an area of points that we are interested in evaluating.</span>
839-
<span id="cb1-44"><a href="#cb1-44" aria-hidden="true" tabindex="-1"></a></span>
840-
<span id="cb1-45"><a href="#cb1-45" aria-hidden="true" tabindex="-1"></a>:::{.callout-tip}</span>
841-
<span id="cb1-46"><a href="#cb1-46" aria-hidden="true" tabindex="-1"></a><span class="fu"># [**Exercise 1**](04_input_output_practical-Answer_key.qmd#exercise-1)</span></span>
842-
<span id="cb1-47"><a href="#cb1-47" aria-hidden="true" tabindex="-1"></a></span>
843-
<span id="cb1-48"><a href="#cb1-48" aria-hidden="true" tabindex="-1"></a>Let's focus on creating this app in several parts:</span>
844-
<span id="cb1-49"><a href="#cb1-49" aria-hidden="true" tabindex="-1"></a></span>
845-
<span id="cb1-50"><a href="#cb1-50" aria-hidden="true" tabindex="-1"></a><span class="ss">1. </span>Create two <span class="in">`selectInput()`</span> menus to choose the x- and y-axis to plot along with the resulting output plot.</span>
846-
<span id="cb1-51"><a href="#cb1-51" aria-hidden="true" tabindex="-1"></a></span>
847-
<span id="cb1-52"><a href="#cb1-52" aria-hidden="true" tabindex="-1"></a><span class="ss">2. </span>Add to our app the ability to brush over the plot and select points to place in a table beneath the plot.</span>
848-
<span id="cb1-53"><a href="#cb1-53" aria-hidden="true" tabindex="-1"></a>:::</span>
849-
<span id="cb1-54"><a href="#cb1-54" aria-hidden="true" tabindex="-1"></a></span>
850-
<span id="cb1-55"><a href="#cb1-55" aria-hidden="true" tabindex="-1"></a>***</span>
851-
<span id="cb1-56"><a href="#cb1-56" aria-hidden="true" tabindex="-1"></a></span>
852-
<span id="cb1-57"><a href="#cb1-57" aria-hidden="true" tabindex="-1"></a><span class="co">[</span><span class="ot">Next Lesson &gt;&gt;</span><span class="co">](05_uploading_downloading_data.qmd)</span></span>
853-
<span id="cb1-58"><a href="#cb1-58" aria-hidden="true" tabindex="-1"></a></span>
854-
<span id="cb1-59"><a href="#cb1-59" aria-hidden="true" tabindex="-1"></a><span class="co">[</span><span class="ot">Back to Schedule</span><span class="co">](../schedule/schedule_AZ.qmd)</span></span>
855-
<span id="cb1-60"><a href="#cb1-60" aria-hidden="true" tabindex="-1"></a></span>
856-
<span id="cb1-61"><a href="#cb1-61" aria-hidden="true" tabindex="-1"></a>*** </span>
857-
<span id="cb1-62"><a href="#cb1-62" aria-hidden="true" tabindex="-1"></a></span>
858-
<span id="cb1-63"><a href="#cb1-63" aria-hidden="true" tabindex="-1"></a>*This lesson has been developed by members of the teaching team at the [Harvard Chan Bioinformatics Core (HBC)](http://bioinformatics.sph.harvard.edu/). These are open access materials distributed under the terms of the [Creative Commons Attribution license](https://creativecommons.org/licenses/by/4.0/) (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.*</span></code><button title="Copy to Clipboard" class="code-copy-button" data-in-quarto-modal=""><i class="bi"></i></button></pre></div>
841+
<span id="cb1-43"><a href="#cb1-43" aria-hidden="true" tabindex="-1"></a></span>
842+
<span id="cb1-44"><a href="#cb1-44" aria-hidden="true" tabindex="-1"></a>This app let's us select the columns that we would like to plot and then allows us to use a brush on our plot select an area of points that we are interested in evaluating.</span>
843+
<span id="cb1-45"><a href="#cb1-45" aria-hidden="true" tabindex="-1"></a></span>
844+
<span id="cb1-46"><a href="#cb1-46" aria-hidden="true" tabindex="-1"></a>:::{.callout-tip}</span>
845+
<span id="cb1-47"><a href="#cb1-47" aria-hidden="true" tabindex="-1"></a><span class="fu"># [**Exercise 1**](04_input_output_practical-Answer_key.qmd#exercise-1)</span></span>
846+
<span id="cb1-48"><a href="#cb1-48" aria-hidden="true" tabindex="-1"></a></span>
847+
<span id="cb1-49"><a href="#cb1-49" aria-hidden="true" tabindex="-1"></a>Let's focus on creating this app in several parts:</span>
848+
<span id="cb1-50"><a href="#cb1-50" aria-hidden="true" tabindex="-1"></a></span>
849+
<span id="cb1-51"><a href="#cb1-51" aria-hidden="true" tabindex="-1"></a><span class="ss">1. </span>Create two <span class="in">`selectInput()`</span> menus to choose the x- and y-axis to plot along with the resulting output plot.</span>
850+
<span id="cb1-52"><a href="#cb1-52" aria-hidden="true" tabindex="-1"></a></span>
851+
<span id="cb1-53"><a href="#cb1-53" aria-hidden="true" tabindex="-1"></a><span class="ss">2. </span>Add to our app the ability to brush over the plot and select points to place in a table beneath the plot.</span>
852+
<span id="cb1-54"><a href="#cb1-54" aria-hidden="true" tabindex="-1"></a>:::</span>
853+
<span id="cb1-55"><a href="#cb1-55" aria-hidden="true" tabindex="-1"></a></span>
854+
<span id="cb1-56"><a href="#cb1-56" aria-hidden="true" tabindex="-1"></a>***</span>
855+
<span id="cb1-57"><a href="#cb1-57" aria-hidden="true" tabindex="-1"></a></span>
856+
<span id="cb1-58"><a href="#cb1-58" aria-hidden="true" tabindex="-1"></a><span class="co">[</span><span class="ot">Next Lesson &gt;&gt;</span><span class="co">](05_uploading_downloading_data.qmd)</span></span>
857+
<span id="cb1-59"><a href="#cb1-59" aria-hidden="true" tabindex="-1"></a></span>
858+
<span id="cb1-60"><a href="#cb1-60" aria-hidden="true" tabindex="-1"></a><span class="co">[</span><span class="ot">Back to Schedule</span><span class="co">](../schedule/schedule_AZ.qmd)</span></span>
859+
<span id="cb1-61"><a href="#cb1-61" aria-hidden="true" tabindex="-1"></a></span>
860+
<span id="cb1-62"><a href="#cb1-62" aria-hidden="true" tabindex="-1"></a>*** </span>
861+
<span id="cb1-63"><a href="#cb1-63" aria-hidden="true" tabindex="-1"></a></span>
862+
<span id="cb1-64"><a href="#cb1-64" aria-hidden="true" tabindex="-1"></a>*This lesson has been developed by members of the teaching team at the [Harvard Chan Bioinformatics Core (HBC)](http://bioinformatics.sph.harvard.edu/). These are open access materials distributed under the terms of the [Creative Commons Attribution license](https://creativecommons.org/licenses/by/4.0/) (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.*</span></code><button title="Copy to Clipboard" class="code-copy-button" data-in-quarto-modal=""><i class="bi"></i></button></pre></div>
859863
</div></div></div></div></div>
860864
</div> <!-- /content -->
861865
<footer class="footer">

docs/lessons/05_uploading_downloading_data.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@
228228
</li>
229229
<li class="sidebar-item">
230230
<div class="sidebar-item-container">
231-
<a href="../lessons/07_hosting.html" class="sidebar-item-text sidebar-link">
231+
<a href="../lessons/07b_hosting.html" class="sidebar-item-text sidebar-link">
232232
<span class="menu-text">Hosting Options for RShiny Apps</span></a>
233233
</div>
234234
</li>
235235
<li class="sidebar-item">
236236
<div class="sidebar-item-container">
237237
<a href="../lessons/08_layout_practical.html" class="sidebar-item-text sidebar-link">
238-
<span class="menu-text">Practical Exercise</span></a>
238+
<span class="menu-text">Layout Practical</span></a>
239239
</div>
240240
</li>
241241
</ul>

docs/lessons/06_layouts-Answer_key.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,8 +1102,7 @@ <h1>Exercise 1</h1>
11021102
<span id="cb5-247"><a href="#cb5-247" aria-hidden="true" tabindex="-1"></a></span>
11031103
<span id="cb5-248"><a href="#cb5-248" aria-hidden="true" tabindex="-1"></a><span class="co"># Run the app</span></span>
11041104
<span id="cb5-249"><a href="#cb5-249" aria-hidden="true" tabindex="-1"></a><span class="fu">shinyApp</span>(<span class="at">ui =</span> ui, <span class="at">server =</span> server)</span>
1105-
<span id="cb5-250"><a href="#cb5-250" aria-hidden="true" tabindex="-1"></a></span>
1106-
<span id="cb5-251"><a href="#cb5-251" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span>
1105+
<span id="cb5-250"><a href="#cb5-250" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span>
11071106
</code><button title="Copy to Clipboard" class="code-copy-button" data-in-quarto-modal=""><i class="bi"></i></button></pre></div>
11081107
</div></div></div></div></div>
11091108
</div> <!-- /content -->

0 commit comments

Comments
 (0)