Skip to content

Commit

Permalink
Add media section to aesthetics post
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-dray committed May 9, 2024
1 parent cd6f37a commit b0aeecb
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 20 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@

<div class="quarto-listing quarto-listing-container-grid" id="listing-listing">
<div class="list grid quarto-listing-cols-3">
<div class="g-col-1" data-index="0" data-categories="base,r,tidyverse" data-listing-date-sort="1715122800000" data-listing-file-modified-sort="1715207592326" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5">
<div class="g-col-1" data-index="0" data-categories="base,r,tidyverse" data-listing-date-sort="1715122800000" data-listing-file-modified-sort="1715237674000" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="5">
<a href="./posts/2024-05-08-aesthetic/index.html" class="quarto-grid-link">
<div class="quarto-grid-item card h-100 card-left">
<div class="card-body post-contents">
Expand Down
13 changes: 8 additions & 5 deletions _site/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@
<ul>
<li>History: emerged as Base Academic in 1993, mainstreamed as Base Core from 2000 to date.</li>
<li>Visuals: <code>[</code> (square-bracket selector), <code>$</code> (dollar selector), <code>~</code> (formula-form tilde).</li>
<li>Media: <a href="https://cran.r-project.org/doc/manuals/R-exts.html"><em>Writing R Extensions</em></a>, the <a href="https://stat.ethz.ch/mailman/listinfo/r-help">R-help mailing list</a>, that textfile with a <a href="https://fosstodon.org/@mattdray/111125184484188641">Y2K warning</a> that came bundled with R v1.0.</li>
<li>Fashion: cardigans, a wired mouse with a ball in it, the old-school IDE you get when you click ‘R.app’ instead of ‘RStudio.app’.</li>
<li>Palette: <span style="background-color:lightgrey;">grey</span>.</li>
<li>Fashion: Emacs, mailing lists, a wired mouse with a ball in it.</li>
<li>Nearest aesthetic: <a href="https://aesthetics.fandom.com/wiki/Chaotic_Academia">Chaotic Academia</a>, which ‘acknowledges the pretentiousness of classic academia, subtly mocking it at times’.</li>
</ul>
</section>
Expand Down Expand Up @@ -201,8 +202,9 @@ font-style: inherit;">$</span>height), ]</span>
<ul>
<li>History: humble academic origins in 2008, later popularised with the creation of the {tidyverse} in 2016.</li>
<li>Visuals: <code>%&gt;%</code> ({magrittr} pipe), <code>.</code> (data placeholder), <code>~</code> (lambda function).</li>
<li>Palette: Posit <span style="background-color:#1a162d;color:white;">blue</span>, <span style="background-color:#fdeba4;">yellow</span>, and <span style="background-color:#767381;color:white;">grey</span>.</li>
<li>Media: <a href="https://r4ds.hadley.nz/"><em>R for Data Science</em></a>, conflict warnings in the console when you do <code>library(tidyverse)</code>, that one gif of Hadley tapping merrily on an invisible keyboard (‘just typing R code!’).</li>
<li>Fashion: RStudio, hex stickers, rapid deprecation.</li>
<li>Palette: Posit <span style="background-color:#1a162d;color:white;">blue</span>, <span style="background-color:#fdeba4;">yellow</span>, and <span style="background-color:#767381;color:white;">grey</span>.</li>
<li>Nearest aesthetic: <a href="https://aesthetics.fandom.com/wiki/Corporate_Memphis">Corporate Memphis</a> because I’ve literally seen it in Posit marketing.</li>
</ul>
</section>
Expand Down Expand Up @@ -317,10 +319,11 @@ font-style: inherit;">desc</span>(height))</span></code></pre></div>
<section id="overview-2" class="level4">
<h4 class="anchored" data-anchor-id="overview-2">Overview</h4>
<ul>
<li>History: incremental emergence following R version 4.0 in 2020, boosted greatly in 2022 with the release of the base pipe.</li>
<li>History: incremental emergence following R version 4.0 in 2020, boosted greatly in 2022 with the release of the base pipe. The future of R.</li>
<li>Visuals: <code>|&gt;</code> (base pipe), <code>_</code> (data placeholder), <code>\()</code> (lambda function).</li>
<li>Media: meme blogs, cheeky Fosstodon posts.</li>
<li>Fashion: hubris, evil moustaches, troll-face emojis.</li>
<li>Palette: <span style="background-color:#ff0000;">r</span><span style="background-color:#ff00ff;">a</span><span style="background-color:#00ffff;">i</span><span style="background-color:#00ff00;">n</span><span style="background-color:#0000ff;color:white;">b</span><span style="background-color:#4b0082;color:white;">o</span><span style="background-color:#ee82ee;">w</span>?</li>
<li>Fashion: hubris, moustaches, troll-face emojis.</li>
<li>Nearest aesthetic: <a href="https://aesthetics.fandom.com/wiki/Vacation_Dadcore">Vacation Dadcore</a>, so you can ‘escape to a simpler time without sacrificing any of the fun’.</li>
</ul>
</section>
Expand Down Expand Up @@ -439,7 +442,7 @@ Session info
</summary>
<div class="cell">
<div class="cell-output cell-output-stdout">
<pre><code>Last rendered: 2024-05-08 23:33:15 BST</code></pre>
<pre><code>Last rendered: 2024-05-09 07:54:37 BST</code></pre>
</div>
<div class="cell-output cell-output-stdout">
<pre><code>R version 4.4.0 (2024-04-24)
Expand Down
13 changes: 8 additions & 5 deletions _site/posts/2024-05-08-aesthetic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ <h4 class="anchored" data-anchor-id="overview">Overview</h4>
<ul>
<li>History: emerged as Base Academic in 1993, mainstreamed as Base Core from 2000 to date.</li>
<li>Visuals: <code>[</code> (square-bracket selector), <code>$</code> (dollar selector), <code>~</code> (formula-form tilde).</li>
<li>Media: <a href="https://cran.r-project.org/doc/manuals/R-exts.html"><em>Writing R Extensions</em></a>, the <a href="https://stat.ethz.ch/mailman/listinfo/r-help">R-help mailing list</a>, that textfile with a <a href="https://fosstodon.org/@mattdray/111125184484188641">Y2K warning</a> that came bundled with R v1.0.</li>
<li>Fashion: cardigans, a wired mouse with a ball in it, the old-school IDE you get when you click ‘R.app’ instead of ‘RStudio.app’.</li>
<li>Palette: <span style="background-color:lightgrey;">grey</span>.</li>
<li>Fashion: Emacs, mailing lists, a wired mouse with a ball in it.</li>
<li>Nearest aesthetic: <a href="https://aesthetics.fandom.com/wiki/Chaotic_Academia">Chaotic Academia</a>, which ‘acknowledges the pretentiousness of classic academia, subtly mocking it at times’.</li>
</ul>
</section>
Expand Down Expand Up @@ -287,8 +288,9 @@ <h4 class="anchored" data-anchor-id="overview-1">Overview</h4>
<ul>
<li>History: humble academic origins in 2008, later popularised with the creation of the {tidyverse} in 2016.</li>
<li>Visuals: <code>%&gt;%</code> ({magrittr} pipe), <code>.</code> (data placeholder), <code>~</code> (lambda function).</li>
<li>Palette: Posit <span style="background-color:#1a162d;color:white;">blue</span>, <span style="background-color:#fdeba4;">yellow</span>, and <span style="background-color:#767381;color:white;">grey</span>.</li>
<li>Media: <a href="https://r4ds.hadley.nz/"><em>R for Data Science</em></a>, conflict warnings in the console when you do <code>library(tidyverse)</code>, that one gif of Hadley tapping merrily on an invisible keyboard (‘just typing R code!’).</li>
<li>Fashion: RStudio, hex stickers, rapid deprecation.</li>
<li>Palette: Posit <span style="background-color:#1a162d;color:white;">blue</span>, <span style="background-color:#fdeba4;">yellow</span>, and <span style="background-color:#767381;color:white;">grey</span>.</li>
<li>Nearest aesthetic: <a href="https://aesthetics.fandom.com/wiki/Corporate_Memphis">Corporate Memphis</a> because I’ve literally seen it in Posit marketing.</li>
</ul>
</section>
Expand Down Expand Up @@ -335,10 +337,11 @@ <h4 class="anchored" data-anchor-id="v4-punk">V4 Punk</h4>
<section id="overview-2" class="level4">
<h4 class="anchored" data-anchor-id="overview-2">Overview</h4>
<ul>
<li>History: incremental emergence following R version 4.0 in 2020, boosted greatly in 2022 with the release of the base pipe.</li>
<li>History: incremental emergence following R version 4.0 in 2020, boosted greatly in 2022 with the release of the base pipe. The future of R.</li>
<li>Visuals: <code>|&gt;</code> (base pipe), <code>_</code> (data placeholder), <code>\()</code> (lambda function).</li>
<li>Media: meme blogs, cheeky Fosstodon posts.</li>
<li>Fashion: hubris, evil moustaches, troll-face emojis.</li>
<li>Palette: <span style="background-color:#ff0000;">r</span><span style="background-color:#ff00ff;">a</span><span style="background-color:#00ffff;">i</span><span style="background-color:#00ff00;">n</span><span style="background-color:#0000ff;color:white;">b</span><span style="background-color:#4b0082;color:white;">o</span><span style="background-color:#ee82ee;">w</span>?</li>
<li>Fashion: hubris, moustaches, troll-face emojis.</li>
<li>Nearest aesthetic: <a href="https://aesthetics.fandom.com/wiki/Vacation_Dadcore">Vacation Dadcore</a>, so you can ‘escape to a simpler time without sacrificing any of the fun’.</li>
</ul>
</section>
Expand Down Expand Up @@ -387,7 +390,7 @@ <h4 class="anchored" data-anchor-id="sample-2">Sample</h4>
</summary>
<div class="cell">
<div class="cell-output cell-output-stdout">
<pre><code>Last rendered: 2024-05-08 23:33:15 BST</code></pre>
<pre><code>Last rendered: 2024-05-09 07:54:37 BST</code></pre>
</div>
<div class="cell-output cell-output-stdout">
<pre><code>R version 4.4.0 (2024-04-24)
Expand Down
2 changes: 1 addition & 1 deletion _site/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -9342,6 +9342,6 @@
"href": "posts/2024-05-08-aesthetic/index.html#the-addendum",
"title": "The Aesthetics Wiki: an R Addendum",
"section": "The addendum",
"text": "The addendum\n\nBasecore\n\n\n\nAdapted from Aesthetics Wiki.\n\n\n\nOverview\n\nHistory: emerged as Base Academic in 1993, mainstreamed as Base Core from 2000 to date.\nVisuals: [ (square-bracket selector), $ (dollar selector), ~ (formula-form tilde).\nPalette: grey.\nFashion: Emacs, mailing lists, a wired mouse with a ball in it.\nNearest aesthetic: Chaotic Academia, which ‘acknowledges the pretentiousness of classic academia, subtly mocking it at times’.\n\n\n\nSample\nClassic stuff. Typical base-R code uses a lot of intermediate assignment to create temporary objects for further manipulation. Many actions make use of square bracket notation to indicate some action over rows and columns of a data.frame. Data.frame columns have to be called within the context of the data.frame they belong to, using dollar or square-bracket notation. The tilde is used for formula notation (‘this given that’).\n\n\nSet up demo data\n\n\nsuppressPackageStartupMessages(library(dplyr))\nsw_a &lt;- starwars[, c(\"name\", \"species\", \"height\")]\nsw_b &lt;- starwars[, c(\"name\", \"homeworld\")]\n\n\n\nx &lt;- sw_a[sw_a$species == \"Human\", names(sw_a) != \"species\"]\nx &lt;- merge(x, sw_b, by = \"name\")\nx$height &lt;- x$height / 100\nx$homeworld &lt;- ifelse(\n !x$homeworld %in% c(\"Tatooine\", \"Naboo\"),\n \"Other\",\n x$homeworld\n)\nx &lt;- aggregate(x, height ~ homeworld, mean, na.rm = TRUE)\nx &lt;- x[order(-x$height), ]\nx\n\n homeworld height\n3 Tatooine 1.792500\n2 Other 1.776471\n1 Naboo 1.772000\n\n\n\n\n\nTidywave\n\n\n\nAdapted from Aesthetics Wiki.\n\n\n\nOverview\n\nHistory: humble academic origins in 2008, later popularised with the creation of the {tidyverse} in 2016.\nVisuals: %&gt;% ({magrittr} pipe), . (data placeholder), ~ (lambda function).\nPalette: Posit blue, yellow, and grey.\nFashion: RStudio, hex stickers, rapid deprecation.\nNearest aesthetic: Corporate Memphis because I’ve literally seen it in Posit marketing.\n\n\n\nSample\nThe script reads from left-to-right and top-to-bottom, recipe style, using pipes: ‘take dataset, then do a thing, then do a thing’, etc. Each function is verb that indicates its action. Non-standard evaluation is rampant. A tilde replaces the tedious typing of function(). A titchy inconspicuous . acts as a data placeholder on the right-hand side of a pipe.\n\nsw_a %&gt;%\n filter(species == \"Human\") %&gt;%\n select(-species) %&gt;%\n left_join(sw_b, by = \"name\") %&gt;%\n mutate(\n height = height / 100,\n homeworld = if_else(\n !homeworld %in% c(\"Tatooine\", \"Naboo\"),\n \"Other\",\n homeworld\n )\n ) %&gt;%\n summarise(\n height = mean(height, na.rm = TRUE),\n .by = homeworld\n ) %&gt;%\n arrange(desc(height))\n\n# A tibble: 3 × 2\n homeworld height\n &lt;chr&gt; &lt;dbl&gt;\n1 Tatooine 1.79\n2 Other 1.78\n3 Naboo 1.77\n\n\n\n\nV4 Punk\n\n\n\nAdapted from Aesthetics Wiki.\n\n\n\n\nOverview\n\nHistory: incremental emergence following R version 4.0 in 2020, boosted greatly in 2022 with the release of the base pipe.\nVisuals: |&gt; (base pipe), _ (data placeholder), \\() (lambda function).\nPalette: rainbow?\nFashion: hubris, moustaches, troll-face emojis.\nNearest aesthetic: Vacation Dadcore, so you can ‘escape to a simpler time without sacrificing any of the fun’.\n\n\n\nSample\nHear me out: what if tidyverse, but made entirely of base R functions2? This is now possible with the base pipe and by using obscure functions that help you avoid square brackets3. It’s also sketchy as heck; just see the help files for subset() (‘unanticipated consequences’) and transform() (‘you deserve whatever you get!’). The death of Basecore and Tidywave, for sure.\n\nsw_a |&gt;\n subset(\n species == \"Human\",\n select = -species\n ) |&gt;\n merge(sw_b, by = \"name\") |&gt;\n transform(\n height = height / 100,\n homeworld = ifelse(\n !homeworld %in% c(\"Tatooine\", \"Naboo\"),\n \"Other\",\n homeworld\n )\n ) |&gt;\n aggregate(\n height ~ homeworld, \n \\(x) mean(x, na.rm = TRUE)\n ) |&gt;\n sort_by(~ height, decreasing = TRUE) # hot off the v4.4 press\n\n homeworld height\n3 Tatooine 1.792500\n2 Other 1.776471\n1 Naboo 1.772000\n\n\nCan’t wait to see this roll out into production code."
"text": "The addendum\n\nBasecore\n\n\n\nAdapted from Aesthetics Wiki.\n\n\n\nOverview\n\nHistory: emerged as Base Academic in 1993, mainstreamed as Base Core from 2000 to date.\nVisuals: [ (square-bracket selector), $ (dollar selector), ~ (formula-form tilde).\nMedia: Writing R Extensions, the R-help mailing list, that textfile with a Y2K warning that came bundled with R v1.0.\nFashion: cardigans, a wired mouse with a ball in it, the old-school IDE you get when you click ‘R.app’ instead of ‘RStudio.app’.\nPalette: grey.\nNearest aesthetic: Chaotic Academia, which ‘acknowledges the pretentiousness of classic academia, subtly mocking it at times’.\n\n\n\nSample\nClassic stuff. Typical base-R code uses a lot of intermediate assignment to create temporary objects for further manipulation. Many actions make use of square bracket notation to indicate some action over rows and columns of a data.frame. Data.frame columns have to be called within the context of the data.frame they belong to, using dollar or square-bracket notation. The tilde is used for formula notation (‘this given that’).\n\n\nSet up demo data\n\n\nsuppressPackageStartupMessages(library(dplyr))\nsw_a &lt;- starwars[, c(\"name\", \"species\", \"height\")]\nsw_b &lt;- starwars[, c(\"name\", \"homeworld\")]\n\n\n\nx &lt;- sw_a[sw_a$species == \"Human\", names(sw_a) != \"species\"]\nx &lt;- merge(x, sw_b, by = \"name\")\nx$height &lt;- x$height / 100\nx$homeworld &lt;- ifelse(\n !x$homeworld %in% c(\"Tatooine\", \"Naboo\"),\n \"Other\",\n x$homeworld\n)\nx &lt;- aggregate(x, height ~ homeworld, mean, na.rm = TRUE)\nx &lt;- x[order(-x$height), ]\nx\n\n homeworld height\n3 Tatooine 1.792500\n2 Other 1.776471\n1 Naboo 1.772000\n\n\n\n\n\nTidywave\n\n\n\nAdapted from Aesthetics Wiki.\n\n\n\nOverview\n\nHistory: humble academic origins in 2008, later popularised with the creation of the {tidyverse} in 2016.\nVisuals: %&gt;% ({magrittr} pipe), . (data placeholder), ~ (lambda function).\nMedia: R for Data Science, conflict warnings in the console when you do library(tidyverse), that one gif of Hadley tapping merrily on an invisible keyboard (‘just typing R code!’).\nFashion: RStudio, hex stickers, rapid deprecation.\nPalette: Posit blue, yellow, and grey.\nNearest aesthetic: Corporate Memphis because I’ve literally seen it in Posit marketing.\n\n\n\nSample\nThe script reads from left-to-right and top-to-bottom, recipe style, using pipes: ‘take dataset, then do a thing, then do a thing’, etc. Each function is verb that indicates its action. Non-standard evaluation is rampant. A tilde replaces the tedious typing of function(). A titchy inconspicuous . acts as a data placeholder on the right-hand side of a pipe.\n\nsw_a %&gt;%\n filter(species == \"Human\") %&gt;%\n select(-species) %&gt;%\n left_join(sw_b, by = \"name\") %&gt;%\n mutate(\n height = height / 100,\n homeworld = if_else(\n !homeworld %in% c(\"Tatooine\", \"Naboo\"),\n \"Other\",\n homeworld\n )\n ) %&gt;%\n summarise(\n height = mean(height, na.rm = TRUE),\n .by = homeworld\n ) %&gt;%\n arrange(desc(height))\n\n# A tibble: 3 × 2\n homeworld height\n &lt;chr&gt; &lt;dbl&gt;\n1 Tatooine 1.79\n2 Other 1.78\n3 Naboo 1.77\n\n\n\n\nV4 Punk\n\n\n\nAdapted from Aesthetics Wiki.\n\n\n\n\nOverview\n\nHistory: incremental emergence following R version 4.0 in 2020, boosted greatly in 2022 with the release of the base pipe. The future of R.\nVisuals: |&gt; (base pipe), _ (data placeholder), \\() (lambda function).\nMedia: meme blogs, cheeky Fosstodon posts.\nFashion: hubris, evil moustaches, troll-face emojis.\nPalette: rainbow?\nNearest aesthetic: Vacation Dadcore, so you can ‘escape to a simpler time without sacrificing any of the fun’.\n\n\n\nSample\nHear me out: what if tidyverse, but made entirely of base R functions2? This is now possible with the base pipe and by using obscure functions that help you avoid square brackets3. It’s also sketchy as heck; just see the help files for subset() (‘unanticipated consequences’) and transform() (‘you deserve whatever you get!’). The death of Basecore and Tidywave, for sure.\n\nsw_a |&gt;\n subset(\n species == \"Human\",\n select = -species\n ) |&gt;\n merge(sw_b, by = \"name\") |&gt;\n transform(\n height = height / 100,\n homeworld = ifelse(\n !homeworld %in% c(\"Tatooine\", \"Naboo\"),\n \"Other\",\n homeworld\n )\n ) |&gt;\n aggregate(\n height ~ homeworld, \n \\(x) mean(x, na.rm = TRUE)\n ) |&gt;\n sort_by(~ height, decreasing = TRUE) # hot off the v4.4 press\n\n homeworld height\n3 Tatooine 1.792500\n2 Other 1.776471\n1 Naboo 1.772000\n\n\nCan’t wait to see this roll out into production code."
}
]
4 changes: 2 additions & 2 deletions _site/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@
</url>
<url>
<loc>https://www.rostrum.blog/index.html</loc>
<lastmod>2024-05-08T22:33:24.504Z</lastmod>
<lastmod>2024-05-09T06:54:49.729Z</lastmod>
</url>
<url>
<loc>https://www.rostrum.blog/posts/2024-01-12-yihui-rap/index.html</loc>
Expand Down Expand Up @@ -722,6 +722,6 @@
</url>
<url>
<loc>https://www.rostrum.blog/posts/2024-05-08-aesthetic/index.html</loc>
<lastmod>2024-05-08T22:33:16.429Z</lastmod>
<lastmod>2024-05-09T06:54:38.638Z</lastmod>
</url>
</urlset>

0 comments on commit b0aeecb

Please sign in to comment.