Просмотр исходного кода

Deploy from Github Actions build 951791746 [ci skip]

Build URL: https://github.com/gadenbuie/xaringanthemer/actions/runs/951791746
Commit: ce808c74f5
gh-pages
GitHub 5 лет назад
Родитель
Сommit
d01ad5b6fd
3 измененных файлов: 6 добавлений и 6 удалений
  1. +1
    -1
      articles/ggplot2-themes.html
  2. +1
    -1
      pkgdown.yml
  3. +4
    -4
      reference/scale_xaringan.html

+ 1
- 1
articles/ggplot2-themes.html Просмотреть файл

<h3 class="hasAnchor"> <h3 class="hasAnchor">
<a href="#scale-xaringan" class="anchor"></a>Custom Color and Fill Scales</h3> <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>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"> <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> <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> <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
pkgdown.yml Просмотреть файл

template-variables: template-variables.html template-variables: template-variables.html
themes: themes.html themes: themes.html
xaringanthemer: xaringanthemer.html xaringanthemer: xaringanthemer.html
last_built: 2021-06-18T04:37Z
last_built: 2021-06-19T04:34Z
urls: urls:
reference: https://pkg.garrickadenbuie.com/xaringanthemer//reference reference: https://pkg.garrickadenbuie.com/xaringanthemer//reference
article: https://pkg.garrickadenbuie.com/xaringanthemer//articles article: https://pkg.garrickadenbuie.com/xaringanthemer//articles

+ 4
- 4
reference/scale_xaringan.html Просмотреть файл

<tr> <tr>
<th>...</th> <th>...</th>
<td><p>Arguments passed on to either the <span class="pkg">colorspace</span> scale <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> <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>
<tr> <tr>

Загрузка…
Отмена
Сохранить