Przeglądaj źródła

Deploy from Github Actions build 1353110871 [ci skip]

Build URL: https://github.com/gadenbuie/xaringanthemer/actions/runs/1353110871
Commit: 046187ae84
gh-pages
Garrick Aden-Buie 4 lat temu
rodzic
commit
bfa30ab112
3 zmienionych plików z 6 dodań i 6 usunięć
  1. +1
    -1
      dev/articles/ggplot2-themes.html
  2. +1
    -1
      dev/pkgdown.yml
  3. +4
    -4
      dev/reference/scale_xaringan.html

+ 1
- 1
dev/articles/ggplot2-themes.html Wyświetl plik

@@ -236,7 +236,7 @@ img { max-width: 100%; border: none; }
<h3 class="hasAnchor">
<a href="#scale-xaringan" class="anchor"></a>Custom Color and Fill Scales</h3>
<p>xaringanthemer includes monotone color and fill scales to match your ggplot2 theme. The scale functions all follow the naming pattern <code>scale_xaringan_&lt;aes&gt;_&lt;data_type&gt;()</code>, where <code>&lt;aes&gt;</code> is replaced with either <code>color</code> or <code>fill</code> and <code>&lt;data_type&gt;</code> is one of <code>discrete</code> or <code>continuous</code>.</p>
<p>These scales use <code><a href="https://rdrr.io/pkg/colorspace/man/hcl_palettes.html">colorspace::sequential_hcl()</a></code> to create a sequential, monotone color scale based on the primary accent color in your slides. Color scales matching the inverse slides are possible by setting the argument <code>inverse = TRUE</code>.</p>
<p>These scales use <code><a href="https://colorspace.R-Forge.R-project.org//reference/hcl_palettes.html">colorspace::sequential_hcl()</a></code> to create a sequential, monotone color scale based on the primary accent color in your slides. Color scales matching the inverse slides are possible by setting the argument <code>inverse = TRUE</code>.</p>
<div class="sourceCode" id="cb10"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html">ggplot</a></span><span class="op">(</span><span class="va">diamonds</span>, <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/aes.html">aes</a></span><span class="op">(</span>x <span class="op">=</span> <span class="va">cut</span><span class="op">)</span><span class="op">)</span> <span class="op">+</span>
<span class="fu"><a href="https://ggplot2.tidyverse.org/reference/geom_bar.html">geom_bar</a></span><span class="op">(</span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/aes.html">aes</a></span><span class="op">(</span>fill <span class="op">=</span> <span class="va">..count..</span><span class="op">)</span>, show.legend <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span> <span class="op">+</span>

+ 1
- 1
dev/pkgdown.yml Wyświetl plik

@@ -7,7 +7,7 @@ articles:
template-variables: template-variables.html
themes: themes.html
xaringanthemer: xaringanthemer.html
last_built: 2021-10-17T04:38Z
last_built: 2021-10-18T04:38Z
urls:
reference: https://pkg.garrickadenbuie.com/xaringanthemer//reference
article: https://pkg.garrickadenbuie.com/xaringanthemer//articles

+ 4
- 4
dev/reference/scale_xaringan.html Wyświetl plik

@@ -254,10 +254,10 @@ One of "color", "colour", or "fill".</p></td>
<tr>
<th>...</th>
<td><p>Arguments passed on to either the <span class="pkg">colorspace</span> scale
functions — one of <code><a href='https://rdrr.io/pkg/colorspace/man/scale_colour_discrete_sequential.html'>colorspace::scale_color_discrete_sequential()</a></code>,
<code><a href='https://rdrr.io/pkg/colorspace/man/scale_colour_continuous_sequential.html'>colorspace::scale_color_continuous_sequential()</a></code>,
<code><a href='https://rdrr.io/pkg/colorspace/man/scale_colour_discrete_sequential.html'>colorspace::scale_fill_discrete_sequential()</a></code>, or
<code><a href='https://rdrr.io/pkg/colorspace/man/scale_colour_continuous_sequential.html'>colorspace::scale_fill_continuous_sequential()</a></code> — or to
functions — one of <code><a href='https://colorspace.R-Forge.R-project.org//reference/scale_colour_discrete_sequential.html'>colorspace::scale_color_discrete_sequential()</a></code>,
<code><a href='https://colorspace.R-Forge.R-project.org//reference/scale_colour_continuous_sequential.html'>colorspace::scale_color_continuous_sequential()</a></code>,
<code><a href='https://colorspace.R-Forge.R-project.org//reference/scale_colour_discrete_sequential.html'>colorspace::scale_fill_discrete_sequential()</a></code>, or
<code><a href='https://colorspace.R-Forge.R-project.org//reference/scale_colour_continuous_sequential.html'>colorspace::scale_fill_continuous_sequential()</a></code> — or to
<a href='https://ggplot2.tidyverse.org/reference/continuous_scale.html'>ggplot2::continuous_scale</a> or <a href='https://ggplot2.tidyverse.org/reference/discrete_scale.html'>ggplot2::discrete_scale</a>.</p></td>
</tr>
<tr>

Ładowanie…
Anuluj
Zapisz