Skip to content

Commit

Permalink
fix package install code
Browse files Browse the repository at this point in the history
  • Loading branch information
clauswilke committed Aug 8, 2024
1 parent f0a7640 commit 1535dd6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 25 deletions.
8 changes: 5 additions & 3 deletions docs/materials/positconf2024.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ To run all code examples on your own install of R, make sure you have a recent v

```r
install.packages(
"tidyverse", "palmerpenguins", "shiny", "shinyjs", "RCurl",
"colorspace", "cowplot", "gapminder", "sf", "ragg",
"magick", "ggpattern", "quarto"
c(
"tidyverse", "palmerpenguins", "shiny", "shinyjs", "RCurl",
"colorspace", "cowplot", "gapminder", "sf", "ragg",
"magick", "ggpattern", "quarto"
)
)
```

Expand Down
18 changes: 10 additions & 8 deletions docs/materials/positconf2024.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@


<!-- https://schema.org/Article -->
<meta property="article:published" itemprop="datePublished" content="2024-07-31" />
<meta property="article:created" itemprop="dateCreated" content="2024-07-31" />
<meta property="article:published" itemprop="datePublished" content="2024-08-08" />
<meta property="article:created" itemprop="dateCreated" content="2024-08-08" />

<!-- https://developers.facebook.com/docs/sharing/webmasters#markup -->
<meta property="og:title" content="posit::conf(2024): Effective Data Visualization with ggplot2" />
Expand All @@ -112,7 +112,7 @@
<!--radix_placeholder_rmarkdown_metadata-->

<script type="text/json" id="radix-rmarkdown-metadata">
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","description","output","date"]}},"value":[{"type":"character","attributes":{},"value":["posit::conf(2024): Effective Data Visualization with ggplot2"]},{"type":"character","attributes":{},"value":[""]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["toc","toc_depth"]}},"value":[{"type":"logical","attributes":{},"value":[true]},{"type":"integer","attributes":{},"value":[2]}]}]},{"type":"character","attributes":{},"value":["2024-07-31"]}]}
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","description","output","date"]}},"value":[{"type":"character","attributes":{},"value":["posit::conf(2024): Effective Data Visualization with ggplot2"]},{"type":"character","attributes":{},"value":[""]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["toc","toc_depth"]}},"value":[{"type":"logical","attributes":{},"value":[true]},{"type":"integer","attributes":{},"value":[2]}]}]},{"type":"character","attributes":{},"value":["2024-08-08"]}]}
</script>
<!--/radix_placeholder_rmarkdown_metadata-->

Expand Down Expand Up @@ -2339,7 +2339,7 @@ <h1>This article is in review.</h1>
<!--radix_placeholder_front_matter-->

<script id="distill-front-matter" type="text/json">
{"title":"posit::conf(2024): Effective Data Visualization with ggplot2","description":"","authors":[],"publishedDate":"2024-07-31T00:00:00.000-05:00"}
{"title":"posit::conf(2024): Effective Data Visualization with ggplot2","description":"","authors":[],"publishedDate":"2024-08-08T00:00:00.000-05:00"}
</script>

<!--/radix_placeholder_front_matter-->
Expand All @@ -2360,10 +2360,12 @@ <h1>posit::conf(2024): Effective Data Visualization with ggplot2</h1>
<p>Materials for posit::conf(2024) workshop, <a href="https://reg.conf.posit.co/flow/posit/positconf24/publiccatalog/page/publiccatalog/session/1707334048207001SOYr">Monday, Aug. 12, 9am</a></p>
<p>To run all code examples on your own install of R, make sure you have a recent version of R (at least 4.3), a recent version of ggplot2 (at least 3.5.0), and install the following packages:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">install.packages</span>(</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;tidyverse&quot;</span>, <span class="st">&quot;palmerpenguins&quot;</span>, <span class="st">&quot;shiny&quot;</span>, <span class="st">&quot;shinyjs&quot;</span>, <span class="st">&quot;RCurl&quot;</span>,</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;colorspace&quot;</span>, <span class="st">&quot;cowplot&quot;</span>, <span class="st">&quot;gapminder&quot;</span>, <span class="st">&quot;sf&quot;</span>, <span class="st">&quot;ragg&quot;</span>,</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;magick&quot;</span>, <span class="st">&quot;ggpattern&quot;</span>, <span class="st">&quot;quarto&quot;</span></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a>)</span></code></pre></div>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">c</span>( </span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;tidyverse&quot;</span>, <span class="st">&quot;palmerpenguins&quot;</span>, <span class="st">&quot;shiny&quot;</span>, <span class="st">&quot;shinyjs&quot;</span>, <span class="st">&quot;RCurl&quot;</span>,</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;colorspace&quot;</span>, <span class="st">&quot;cowplot&quot;</span>, <span class="st">&quot;gapminder&quot;</span>, <span class="st">&quot;sf&quot;</span>, <span class="st">&quot;ragg&quot;</span>,</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;magick&quot;</span>, <span class="st">&quot;ggpattern&quot;</span>, <span class="st">&quot;quarto&quot;</span></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a> )</span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>)</span></code></pre></div>
<p>Solutions to the problems in the exercise worksheets are provided, but you should not look at these solutions before the workshop and before you have made an honest attempt at completing an exercise on your own.</p>
<h3 id="color-scales-and-color-spaces">1. Color scales and color spaces</h3>
<ul>
Expand Down
6 changes: 3 additions & 3 deletions docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
"description": "A bootcamp-style course on data visualization",
"author": [],
"contents": "\nThis is the home page for a dataviz shortcourse by Claus O. Wilke. The course is an abbreviated version of a semester-long course taught at The University of Texas at Austin. Many of the materials presented are taken from the book Fundamentals of Data Visualization.\n\nReuse\nText and figures are licensed under Creative Commons Attribution CC BY 4.0. Any computer code (R, HTML, CSS, etc.) in slides and worksheets, including in slide and worksheet sources, is also licensed under MIT. Note that figures in slides may be pulled in from external sources and may be licensed under different terms. For such images, image credits are available in the slide notes, accessible via pressing the letter ‘p’.\n\n\n\n",
"last_modified": "2024-08-08T16:26:30-05:00"
"last_modified": "2024-08-08T16:54:16-05:00"
},
{
"path": "lessons.html",
"title": "Lessons",
"description": "",
"author": [],
"contents": "\n\nContents\nEffective Visual Communication\nFrom Data to Visualisation 1\nFrom Data to Visualisation 2\nPrinciples of Figure Design\nReuse\n\nEffective Visual Communication\nThis lecture covers three core concepts of visual communication. First, I will discuss how to engage your audience by telling a story. Second, I will provide high-level guidance for designing visualizations that make a clear point. Third, I will describe key design principles that ensure your figures will be readable by people with vision impairments, and specifically impairments of color perception.\n\nMaterials:\n\nSlides\nFrom Data to Visualisation 1\nVisualizing amounts; visualizing distributions; visualizing associations and trends\n\nMaterials:\n\nSlides\nFrom Data to Visualisation 2\nVisualizing uncertainty; visualizing geospatial data\n\nMaterials:\n\nSlides\nPrinciples of Figure Design\nColors; compound figures; infographics\n\nMaterials:\n\nSlides\nReuse\nText and figures are licensed under Creative Commons Attribution CC BY 4.0. Any computer code (R, HTML, CSS, etc.) in slides and worksheets, including in slide and worksheet sources, is also licensed under MIT. Note that figures in slides may be pulled in from external sources and may be licensed under different terms. For such images, image credits are available in the slide notes, accessible via pressing the letter ‘p’.\n\n\n\n",
"last_modified": "2024-08-08T16:26:30-05:00"
"last_modified": "2024-08-08T16:54:17-05:00"
},
{
"path": "workshops.html",
"title": "Workshops",
"description": "",
"author": [],
"contents": "\n\nContents\nReuse\n\nMaterials for past and present workshops. Many workshop materials are based on content from my semester-long data visualization course at UT Austin.\n2024-08-12: Effective Data Visualization with ggplot2\nAll workshop materials will be posted here.\n2024-06-24: Visualizing Uncertainty and Trends\nKeynote, June 24 2024: slides\nWorkshop, June 27 2024:\nQuarto notebook\nHTML\nHTML with solutions\n\n2024-06-20: Effective Visual Communication with R\nWorkshop in support of Ukraine. To work through all the examples provided, you will need the following R packages: tidyverse, cowplot, ggiraph, sf, patchwork\nSlides Part 1\nSlides Part 2\nSlides Part 2, without interactivity (Some browsers crash when there are too many interactive examples in one slide set.)\n2024-05-28: Effective Visual Communication\nSlides Part 1 (telling a story, making a point, making figures accessible)\nSlides Part 2 (figure composition and context, text annotations, overplotting)\nReuse\nText and figures are licensed under Creative Commons Attribution CC BY 4.0. Any computer code (R, HTML, CSS, etc.) in slides and worksheets, including in slide and worksheet sources, is also licensed under MIT. Note that figures in slides may be pulled in from external sources and may be licensed under different terms.\n\n\n\n",
"last_modified": "2024-08-08T16:26:30-05:00"
"last_modified": "2024-08-08T16:54:17-05:00"
}
],
"collections": []
Expand Down
8 changes: 5 additions & 3 deletions materials/positconf2024.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ To run all code examples on your own install of R, make sure you have a recent v

```r
install.packages(
"tidyverse", "palmerpenguins", "shiny", "shinyjs", "RCurl",
"colorspace", "cowplot", "gapminder", "sf", "ragg",
"magick", "ggpattern", "quarto"
c(
"tidyverse", "palmerpenguins", "shiny", "shinyjs", "RCurl",
"colorspace", "cowplot", "gapminder", "sf", "ragg",
"magick", "ggpattern", "quarto"
)
)
```

Expand Down
18 changes: 10 additions & 8 deletions materials/positconf2024.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@


<!-- https://schema.org/Article -->
<meta property="article:published" itemprop="datePublished" content="2024-07-31" />
<meta property="article:created" itemprop="dateCreated" content="2024-07-31" />
<meta property="article:published" itemprop="datePublished" content="2024-08-08" />
<meta property="article:created" itemprop="dateCreated" content="2024-08-08" />

<!-- https://developers.facebook.com/docs/sharing/webmasters#markup -->
<meta property="og:title" content="posit::conf(2024): Effective Data Visualization with ggplot2" />
Expand All @@ -112,7 +112,7 @@
<!--radix_placeholder_rmarkdown_metadata-->

<script type="text/json" id="radix-rmarkdown-metadata">
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","description","output","date"]}},"value":[{"type":"character","attributes":{},"value":["posit::conf(2024): Effective Data Visualization with ggplot2"]},{"type":"character","attributes":{},"value":[""]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["toc","toc_depth"]}},"value":[{"type":"logical","attributes":{},"value":[true]},{"type":"integer","attributes":{},"value":[2]}]}]},{"type":"character","attributes":{},"value":["2024-07-31"]}]}
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["title","description","output","date"]}},"value":[{"type":"character","attributes":{},"value":["posit::conf(2024): Effective Data Visualization with ggplot2"]},{"type":"character","attributes":{},"value":[""]},{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["distill::distill_article"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["toc","toc_depth"]}},"value":[{"type":"logical","attributes":{},"value":[true]},{"type":"integer","attributes":{},"value":[2]}]}]},{"type":"character","attributes":{},"value":["2024-08-08"]}]}
</script>
<!--/radix_placeholder_rmarkdown_metadata-->

Expand Down Expand Up @@ -2339,7 +2339,7 @@ <h1>This article is in review.</h1>
<!--radix_placeholder_front_matter-->

<script id="distill-front-matter" type="text/json">
{"title":"posit::conf(2024): Effective Data Visualization with ggplot2","description":"","authors":[],"publishedDate":"2024-07-31T00:00:00.000-05:00"}
{"title":"posit::conf(2024): Effective Data Visualization with ggplot2","description":"","authors":[],"publishedDate":"2024-08-08T00:00:00.000-05:00"}
</script>

<!--/radix_placeholder_front_matter-->
Expand All @@ -2360,10 +2360,12 @@ <h1>posit::conf(2024): Effective Data Visualization with ggplot2</h1>
<p>Materials for posit::conf(2024) workshop, <a href="https://reg.conf.posit.co/flow/posit/positconf24/publiccatalog/page/publiccatalog/session/1707334048207001SOYr">Monday, Aug. 12, 9am</a></p>
<p>To run all code examples on your own install of R, make sure you have a recent version of R (at least 4.3), a recent version of ggplot2 (at least 3.5.0), and install the following packages:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">install.packages</span>(</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;tidyverse&quot;</span>, <span class="st">&quot;palmerpenguins&quot;</span>, <span class="st">&quot;shiny&quot;</span>, <span class="st">&quot;shinyjs&quot;</span>, <span class="st">&quot;RCurl&quot;</span>,</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;colorspace&quot;</span>, <span class="st">&quot;cowplot&quot;</span>, <span class="st">&quot;gapminder&quot;</span>, <span class="st">&quot;sf&quot;</span>, <span class="st">&quot;ragg&quot;</span>,</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;magick&quot;</span>, <span class="st">&quot;ggpattern&quot;</span>, <span class="st">&quot;quarto&quot;</span></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a>)</span></code></pre></div>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> <span class="fu">c</span>( </span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;tidyverse&quot;</span>, <span class="st">&quot;palmerpenguins&quot;</span>, <span class="st">&quot;shiny&quot;</span>, <span class="st">&quot;shinyjs&quot;</span>, <span class="st">&quot;RCurl&quot;</span>,</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;colorspace&quot;</span>, <span class="st">&quot;cowplot&quot;</span>, <span class="st">&quot;gapminder&quot;</span>, <span class="st">&quot;sf&quot;</span>, <span class="st">&quot;ragg&quot;</span>,</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a> <span class="st">&quot;magick&quot;</span>, <span class="st">&quot;ggpattern&quot;</span>, <span class="st">&quot;quarto&quot;</span></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a> )</span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>)</span></code></pre></div>
<p>Solutions to the problems in the exercise worksheets are provided, but you should not look at these solutions before the workshop and before you have made an honest attempt at completing an exercise on your own.</p>
<h3 id="color-scales-and-color-spaces">1. Color scales and color spaces</h3>
<ul>
Expand Down

0 comments on commit 1535dd6

Please sign in to comment.