Deploying to gh-pages from @ gnoblet/visualizeR@6b508150a7 🚀

This commit is contained in:
gnoblet 2025-07-03 09:57:02 +00:00
parent 1373bba6df
commit 6d523013ae
35 changed files with 591 additions and 175 deletions

View file

@ -36,12 +36,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="https://gnoblet.github.io/visualizeR/reference/index.html">Reference</a></li> <li class="nav-item"><a class="nav-link" href="https://gnoblet.github.io/visualizeR/reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="https://gnoblet.github.io/visualizeR/articles/bar_charts.html">Bar charts</a></li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="https://gnoblet.github.io/visualizeR/news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="https://gnoblet.github.io/visualizeR/news/index.html">Changelog</a></li>
</ul> </ul>
<ul class="navbar-nav"> <ul class="navbar-nav">

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json"></form></li>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="search.json"></form></li>

View file

@ -38,12 +38,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"> <ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li> <li class="nav-item"><a class="nav-link" href="reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles">
<li><a class="dropdown-item" href="articles/bar_charts.html">Bar charts</a></li>
</ul>
</li>
<li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="news/index.html">Changelog</a></li>
</ul> </ul>
<ul class="navbar-nav"> <ul class="navbar-nav">
@ -94,6 +88,7 @@
<li><label><input type="checkbox">Alluvial</label></li> <li><label><input type="checkbox">Alluvial</label></li>
</ul> </ul>
</li> </li>
<li><label><input type="checkbox">Option for tag with css code + for titles/subtitles/captions</label></li>
</ul> </ul>
</div> </div>
<div class="section level2"> <div class="section level2">
@ -163,38 +158,22 @@
<span></span> <span></span>
<span><span class="co"># Simple bar chart by group with some alpha transparency</span></span> <span><span class="co"># Simple bar chart by group with some alpha transparency</span></span>
<span><span class="fu"><a href="reference/bar.html">bar</a></span><span class="op">(</span><span class="va">df</span>, <span class="st">"island"</span>, <span class="st">"mean_bl"</span>, <span class="st">"species"</span>, x_title <span class="op">=</span> <span class="st">"Mean of bill length"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island and species"</span><span class="op">)</span></span></code></pre></div> <span><span class="fu"><a href="reference/bar.html">bar</a></span><span class="op">(</span><span class="va">df</span>, <span class="st">"island"</span>, <span class="st">"mean_bl"</span>, <span class="st">"species"</span>, x_title <span class="op">=</span> <span class="st">"Mean of bill length"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island and species"</span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-bar-chart-1.png" width="65%"></p>
<img src="reference/figures/README-example-bar-chart-1.png" alt="plot of chunk example-bar-chart" width="65%"><p class="caption">
plot of chunk example-bar-chart
</p>
</div>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Flipped / Horizontal</span></span> <span><span class="co"># Flipped / Horizontal</span></span>
<span><span class="fu"><a href="reference/bar.html">hbar</a></span><span class="op">(</span><span class="va">df</span>, <span class="st">"island"</span>, <span class="st">"mean_bl"</span>, <span class="st">"species"</span>, x_title <span class="op">=</span> <span class="st">"Mean of bill length"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island and species"</span><span class="op">)</span></span></code></pre></div> <span><span class="fu"><a href="reference/bar.html">hbar</a></span><span class="op">(</span><span class="va">df</span>, <span class="st">"island"</span>, <span class="st">"mean_bl"</span>, <span class="st">"species"</span>, x_title <span class="op">=</span> <span class="st">"Mean of bill length"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island and species"</span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-bar-chart-2.png" width="65%"></p>
<img src="reference/figures/README-example-bar-chart-2.png" alt="plot of chunk example-bar-chart" width="65%"><p class="caption">
plot of chunk example-bar-chart
</p>
</div>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Facetted</span></span> <span><span class="co"># Facetted</span></span>
<span><span class="fu"><a href="reference/bar.html">bar</a></span><span class="op">(</span><span class="va">df</span>, <span class="st">"island"</span>, <span class="st">"mean_bl"</span>, facet <span class="op">=</span> <span class="st">"species"</span>, x_title <span class="op">=</span> <span class="st">"Mean of bill length"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island and species"</span>, add_color_guide <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code></pre></div> <span><span class="fu"><a href="reference/bar.html">bar</a></span><span class="op">(</span><span class="va">df</span>, <span class="st">"island"</span>, <span class="st">"mean_bl"</span>, facet <span class="op">=</span> <span class="st">"species"</span>, x_title <span class="op">=</span> <span class="st">"Mean of bill length"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island and species"</span>, add_color_guide <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-bar-chart-3.png" width="65%"></p>
<img src="reference/figures/README-example-bar-chart-3.png" alt="plot of chunk example-bar-chart" width="65%"><p class="caption">
plot of chunk example-bar-chart
</p>
</div>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Flipped, with text, smaller width, and caption</span></span> <span><span class="co"># Flipped, with text, smaller width, and caption</span></span>
<span><span class="fu"><a href="reference/bar.html">hbar</a></span><span class="op">(</span>df <span class="op">=</span> <span class="va">df_island</span>, x <span class="op">=</span> <span class="st">"island"</span>, y <span class="op">=</span> <span class="st">"mean_bl"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island"</span>, add_text <span class="op">=</span> <span class="cn">T</span>, width <span class="op">=</span> <span class="fl">0.6</span>, add_text_suffix <span class="op">=</span> <span class="st">"mm"</span>, add_text_expand_limit <span class="op">=</span> <span class="fl">1.3</span>, add_color_guide <span class="op">=</span> <span class="cn">FALSE</span>, caption <span class="op">=</span> <span class="st">"Data: palmerpenguins package."</span><span class="op">)</span></span></code></pre></div> <span><span class="fu"><a href="reference/bar.html">hbar</a></span><span class="op">(</span>df <span class="op">=</span> <span class="va">df_island</span>, x <span class="op">=</span> <span class="st">"island"</span>, y <span class="op">=</span> <span class="st">"mean_bl"</span>, title <span class="op">=</span> <span class="st">"Mean of bill length by island"</span>, add_text <span class="op">=</span> <span class="cn">T</span>, width <span class="op">=</span> <span class="fl">0.6</span>, add_text_suffix <span class="op">=</span> <span class="st">"mm"</span>, add_text_expand_limit <span class="op">=</span> <span class="fl">1.3</span>, add_color_guide <span class="op">=</span> <span class="cn">FALSE</span>, caption <span class="op">=</span> <span class="st">"Data: palmerpenguins package."</span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-bar-chart-4.png" width="65%"></p>
<img src="reference/figures/README-example-bar-chart-4.png" alt="plot of chunk example-bar-chart" width="65%"><p class="caption">
plot of chunk example-bar-chart
</p>
</div>
</div> </div>
<div class="section level3"> <div class="section level3">
<h3 id="example-2-scatterplot">Example 2: Scatterplot<a class="anchor" aria-label="anchor" href="#example-2-scatterplot"></a> <h3 id="example-2-scatterplot">Example 2: Scatterplot<a class="anchor" aria-label="anchor" href="#example-2-scatterplot"></a>
@ -202,29 +181,17 @@ plot of chunk example-bar-chart
<div class="sourceCode" id="cb7"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb7"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># Simple scatterplot</span></span> <code class="sourceCode R"><span><span class="co"># Simple scatterplot</span></span>
<span><span class="fu"><a href="reference/point.html">point</a></span><span class="op">(</span><span class="va">penguins</span>, <span class="st">"bill_length_mm"</span>, <span class="st">"flipper_length_mm"</span><span class="op">)</span></span></code></pre></div> <span><span class="fu"><a href="reference/point.html">point</a></span><span class="op">(</span><span class="va">penguins</span>, <span class="st">"bill_length_mm"</span>, <span class="st">"flipper_length_mm"</span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-point-chart-1.png" width="65%"></p>
<img src="reference/figures/README-example-point-chart-1.png" alt="plot of chunk example-point-chart" width="65%"><p class="caption">
plot of chunk example-point-chart
</p>
</div>
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb8"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Scatterplot with grouping colors, greater dot size, some transparency</span></span> <span><span class="co"># Scatterplot with grouping colors, greater dot size, some transparency</span></span>
<span><span class="fu"><a href="reference/point.html">point</a></span><span class="op">(</span><span class="va">penguins</span>, <span class="st">"bill_length_mm"</span>, <span class="st">"flipper_length_mm"</span>, <span class="st">"island"</span>, group_title <span class="op">=</span> <span class="st">"Island"</span>, alpha <span class="op">=</span> <span class="fl">0.6</span>, size <span class="op">=</span> <span class="fl">3</span>, title <span class="op">=</span> <span class="st">"Bill vs. flipper length"</span>, , add_color_guide <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code></pre></div> <span><span class="fu"><a href="reference/point.html">point</a></span><span class="op">(</span><span class="va">penguins</span>, <span class="st">"bill_length_mm"</span>, <span class="st">"flipper_length_mm"</span>, <span class="st">"island"</span>, group_title <span class="op">=</span> <span class="st">"Island"</span>, alpha <span class="op">=</span> <span class="fl">0.6</span>, size <span class="op">=</span> <span class="fl">3</span>, title <span class="op">=</span> <span class="st">"Bill vs. flipper length"</span>, , add_color_guide <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-point-chart-2.png" width="65%"></p>
<img src="reference/figures/README-example-point-chart-2.png" alt="plot of chunk example-point-chart" width="65%"><p class="caption">
plot of chunk example-point-chart
</p>
</div>
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Facetted scatterplot by island</span></span> <span><span class="co"># Facetted scatterplot by island</span></span>
<span><span class="fu"><a href="reference/point.html">point</a></span><span class="op">(</span><span class="va">penguins</span>, <span class="st">"bill_length_mm"</span>, <span class="st">"flipper_length_mm"</span>, <span class="st">"species"</span>, <span class="st">"island"</span>, <span class="st">"fixed"</span>, group_title <span class="op">=</span> <span class="st">"Species"</span>, title <span class="op">=</span> <span class="st">"Bill vs. flipper length by species and island"</span>, add_color_guide <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code></pre></div> <span><span class="fu"><a href="reference/point.html">point</a></span><span class="op">(</span><span class="va">penguins</span>, <span class="st">"bill_length_mm"</span>, <span class="st">"flipper_length_mm"</span>, <span class="st">"species"</span>, <span class="st">"island"</span>, <span class="st">"fixed"</span>, group_title <span class="op">=</span> <span class="st">"Species"</span>, title <span class="op">=</span> <span class="st">"Bill vs. flipper length by species and island"</span>, add_color_guide <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-point-chart-3.png" width="65%"></p>
<img src="reference/figures/README-example-point-chart-3.png" alt="plot of chunk example-point-chart" width="65%"><p class="caption">
plot of chunk example-point-chart
</p>
</div>
</div> </div>
<div class="section level3"> <div class="section level3">
<h3 id="example-3-dumbbell-plot">Example 3: Dumbbell plot<a class="anchor" aria-label="anchor" href="#example-3-dumbbell-plot"></a> <h3 id="example-3-dumbbell-plot">Example 3: Dumbbell plot<a class="anchor" aria-label="anchor" href="#example-3-dumbbell-plot"></a>
@ -323,7 +290,7 @@ plot of chunk example-point-chart
<span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>stat <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/Round.html" class="external-link">round</a></span><span class="op">(</span><span class="va">stat</span>, <span class="fl">0</span><span class="op">)</span><span class="op">)</span></span> <span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>stat <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/Round.html" class="external-link">round</a></span><span class="op">(</span><span class="va">stat</span>, <span class="fl">0</span><span class="op">)</span><span class="op">)</span></span>
<span></span> <span></span>
<span><span class="co"># Simple vertical lollipop chart</span></span> <span><span class="co"># Simple vertical lollipop chart</span></span>
<span><span class="fu">lollipop</span><span class="op">(</span></span> <span><span class="fu"><a href="reference/lollipop.html">lollipop</a></span><span class="op">(</span></span>
<span> df <span class="op">=</span> <span class="va">df</span>,</span> <span> df <span class="op">=</span> <span class="va">df</span>,</span>
<span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span> <span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span>
<span> y <span class="op">=</span> <span class="st">"stat"</span>,</span> <span> y <span class="op">=</span> <span class="st">"stat"</span>,</span>
@ -333,15 +300,11 @@ plot of chunk example-point-chart
<span> x_title <span class="op">=</span> <span class="st">"Admin 1"</span>,</span> <span> x_title <span class="op">=</span> <span class="st">"Admin 1"</span>,</span>
<span> title <span class="op">=</span> <span class="st">"% of HHs that received humanitarian assistance"</span></span> <span> title <span class="op">=</span> <span class="st">"% of HHs that received humanitarian assistance"</span></span>
<span><span class="op">)</span></span></code></pre></div> <span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-lollipop-chart-1.png" width="65%"></p>
<img src="reference/figures/README-example-lollipop-chart-1.png" alt="plot of chunk example-lollipop-chart" width="65%"><p class="caption">
plot of chunk example-lollipop-chart
</p>
</div>
<div class="sourceCode" id="cb15"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb15"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Horizontal lollipop chart with custom colors</span></span> <span><span class="co"># Horizontal lollipop chart with custom colors</span></span>
<span><span class="fu">hlollipop</span><span class="op">(</span></span> <span><span class="fu"><a href="reference/lollipop.html">hlollipop</a></span><span class="op">(</span></span>
<span> df <span class="op">=</span> <span class="va">df</span>,</span> <span> df <span class="op">=</span> <span class="va">df</span>,</span>
<span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span> <span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span>
<span> y <span class="op">=</span> <span class="st">"stat"</span>,</span> <span> y <span class="op">=</span> <span class="st">"stat"</span>,</span>
@ -353,11 +316,7 @@ plot of chunk example-lollipop-chart
<span> x_title <span class="op">=</span> <span class="st">"Admin 1"</span>,</span> <span> x_title <span class="op">=</span> <span class="st">"Admin 1"</span>,</span>
<span> title <span class="op">=</span> <span class="st">"% of HHs that received humanitarian assistance"</span></span> <span> title <span class="op">=</span> <span class="st">"% of HHs that received humanitarian assistance"</span></span>
<span><span class="op">)</span></span></code></pre></div> <span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-lollipop-chart-2.png" width="65%"></p>
<img src="reference/figures/README-example-lollipop-chart-2.png" alt="plot of chunk example-lollipop-chart" width="65%"><p class="caption">
plot of chunk example-lollipop-chart
</p>
</div>
<div class="sourceCode" id="cb16"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb16"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Create data for grouped lollipop - using set.seed for reproducibility</span></span> <span><span class="co"># Create data for grouped lollipop - using set.seed for reproducibility</span></span>
@ -370,59 +329,36 @@ plot of chunk example-lollipop-chart
<span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>stat <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/Round.html" class="external-link">round</a></span><span class="op">(</span><span class="va">stat</span>, <span class="fl">0</span><span class="op">)</span><span class="op">)</span></span> <span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>stat <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/Round.html" class="external-link">round</a></span><span class="op">(</span><span class="va">stat</span>, <span class="fl">0</span><span class="op">)</span><span class="op">)</span></span>
<span></span> <span></span>
<span><span class="co"># Grouped lollipop chart with proper side-by-side positioning</span></span> <span><span class="co"># Grouped lollipop chart with proper side-by-side positioning</span></span>
<span><span class="fu">lollipop</span><span class="op">(</span></span> <span><span class="fu"><a href="reference/lollipop.html">lollipop</a></span><span class="op">(</span></span>
<span> df <span class="op">=</span> <span class="va">df_grouped</span>,</span> <span> df <span class="op">=</span> <span class="va">df_grouped</span>,</span>
<span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span> <span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span>
<span> y <span class="op">=</span> <span class="st">"stat"</span>,</span> <span> y <span class="op">=</span> <span class="st">"stat"</span>,</span>
<span> group <span class="op">=</span> <span class="st">"group"</span>,</span> <span> group <span class="op">=</span> <span class="st">"group"</span>,</span>
<span> order <span class="op">=</span> <span class="st">"grouped_y"</span>,</span> <span> order <span class="op">=</span> <span class="st">"grouped_y"</span>,</span>
<span> dodge_width <span class="op">=</span> <span class="fl">0.8</span>, <span class="co"># Control spacing between grouped lollipops</span></span>
<span> dot_size <span class="op">=</span> <span class="fl">3.5</span>,</span> <span> dot_size <span class="op">=</span> <span class="fl">3.5</span>,</span>
<span> line_size <span class="op">=</span> <span class="fl">0.8</span>,</span> <span> line_size <span class="op">=</span> <span class="fl">0.8</span>,</span>
<span> y_title <span class="op">=</span> <span class="st">"Value"</span>,</span> <span> y_title <span class="op">=</span> <span class="st">"Value"</span>,</span>
<span> x_title <span class="op">=</span> <span class="st">"Category"</span>,</span> <span> x_title <span class="op">=</span> <span class="st">"Category"</span>,</span>
<span> title <span class="op">=</span> <span class="st">"True side-by-side grouped lollipop chart"</span></span> <span> title <span class="op">=</span> <span class="st">"True side-by-side grouped lollipop chart"</span></span>
<span><span class="op">)</span></span></code></pre></div> <span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-lollipop-chart-3.png" width="65%"></p>
<img src="reference/figures/README-example-lollipop-chart-3.png" alt="plot of chunk example-lollipop-chart" width="65%"><p class="caption">
plot of chunk example-lollipop-chart
</p>
</div>
<div class="sourceCode" id="cb17"><pre class="downlit sourceCode r"> <div class="sourceCode" id="cb17"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span> <code class="sourceCode R"><span></span>
<span><span class="co"># Horizontal grouped lollipop chart</span></span> <span><span class="co"># Horizontal grouped lollipop chart</span></span>
<span><span class="fu">hlollipop</span><span class="op">(</span></span> <span><span class="fu"><a href="reference/lollipop.html">hlollipop</a></span><span class="op">(</span></span>
<span> df <span class="op">=</span> <span class="va">df_grouped</span>,</span> <span> df <span class="op">=</span> <span class="va">df_grouped</span>,</span>
<span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span> <span> x <span class="op">=</span> <span class="st">"admin1"</span>,</span>
<span> y <span class="op">=</span> <span class="st">"stat"</span>,</span> <span> y <span class="op">=</span> <span class="st">"stat"</span>,</span>
<span> group <span class="op">=</span> <span class="st">"group"</span>,</span> <span> group <span class="op">=</span> <span class="st">"group"</span>,</span>
<span> dodge_width <span class="op">=</span> <span class="fl">0.7</span>, <span class="co"># Narrower spacing for horizontal orientation</span></span>
<span> dot_size <span class="op">=</span> <span class="fl">3.5</span>,</span> <span> dot_size <span class="op">=</span> <span class="fl">3.5</span>,</span>
<span> line_size <span class="op">=</span> <span class="fl">0.8</span>,</span> <span> line_size <span class="op">=</span> <span class="fl">0.8</span>,</span>
<span> y_title <span class="op">=</span> <span class="st">"Category"</span>,</span> <span> y_title <span class="op">=</span> <span class="st">"Category"</span>,</span>
<span> x_title <span class="op">=</span> <span class="st">"Value"</span>,</span> <span> x_title <span class="op">=</span> <span class="st">"Value"</span>,</span>
<span> title <span class="op">=</span> <span class="st">"Horizontal side-by-side grouped lollipop chart"</span></span> <span> title <span class="op">=</span> <span class="st">"Horizontal side-by-side grouped lollipop chart"</span></span>
<span><span class="op">)</span></span></code></pre></div> <span><span class="op">)</span></span></code></pre></div>
<div class="figure"> <p><img src="reference/figures/README-example-lollipop-chart-4.png" width="65%"></p>
<img src="reference/figures/README-example-lollipop-chart-4.png" alt="plot of chunk example-lollipop-chart" width="65%"><p class="caption">
plot of chunk example-lollipop-chart
</p>
</div> </div>
</div> </div>
</div>
<div class="section level2">
<h2 id="lollipop-chart-features">Lollipop Chart Features<a class="anchor" aria-label="anchor" href="#lollipop-chart-features"></a>
</h2>
<p>Lollipop charts offer several advantages:</p>
<ul>
<li>Clean visualization of point data with connecting lines to a baseline</li>
<li>True side-by-side grouped display for easy comparison between categories</li>
<li>Each lollipop maintains its position from dot to baseline</li>
<li>Customizable appearance with parameters for dot size, line width, and colors</li>
<li>The <code>dodge_width</code> parameter controls spacing between grouped lollipops</li>
</ul>
<p>The side-by-side positioning for grouped lollipops makes them visually distinct from dumbbell plots, which typically connect related points on the same line.</p>
</div>
</div> </div>
</main><aside class="col-md-3"><div class="links"> </main><aside class="col-md-3"><div class="links">
<h2 data-toc-skip>Links</h2> <h2 data-toc-skip>Links</h2>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="active nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="active nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
@ -49,7 +45,7 @@
</li> </li>
<li>Add <code>donut()</code> <li>Add <code>donut()</code>
</li> </li>
<li>Add <code>lollipop()</code> <li>Add <code><a href="../reference/lollipop.html">lollipop()</a></code>
</li> </li>
<li>Add further parameters to <code>theme_reach()</code>, including grid lines args.</li> <li>Add further parameters to <code>theme_reach()</code>, including grid lines args.</li>
</ul><hr></div> </ul><hr></div>

View file

@ -1,9 +1,8 @@
pandoc: 3.1.11 pandoc: 3.1.11
pkgdown: 2.1.3 pkgdown: 2.1.3
pkgdown_sha: ~ pkgdown_sha: ~
articles: articles: {}
bar_charts: bar_charts.html last_built: 2025-07-03T09:56Z
last_built: 2025-07-02T11:37Z
urls: urls:
reference: https://gnoblet.github.io/visualizeR/reference reference: https://gnoblet.github.io/visualizeR/reference
article: https://gnoblet.github.io/visualizeR/articles article: https://gnoblet.github.io/visualizeR/articles

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
@ -93,7 +89,11 @@
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2> <h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
<dl><dt id="arg-flip">flip<a class="anchor" aria-label="anchor" href="#arg-flip"></a></dt> <dl><dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>Additional arguments passed to `bar()`</p></dd>
<dt id="arg-flip">flip<a class="anchor" aria-label="anchor" href="#arg-flip"></a></dt>
<dd><p>TRUE or FALSE (default). Default to TRUE or horizontal bar plot.</p></dd> <dd><p>TRUE or FALSE (default). Default to TRUE or horizontal bar plot.</p></dd>
@ -224,6 +224,14 @@
<dt id="arg-add-text-round">add_text_round<a class="anchor" aria-label="anchor" href="#arg-add-text-round"></a></dt> <dt id="arg-add-text-round">add_text_round<a class="anchor" aria-label="anchor" href="#arg-add-text-round"></a></dt>
<dd><p>Round the text label.</p></dd> <dd><p>Round the text label.</p></dd>
<dt id="arg-scale-fill-fun">scale_fill_fun<a class="anchor" aria-label="anchor" href="#arg-scale-fill-fun"></a></dt>
<dd><p>Scale fill function. Default to scale_fill_visualizer_discrete().</p></dd>
<dt id="arg-scale-color-fun">scale_color_fun<a class="anchor" aria-label="anchor" href="#arg-scale-color-fun"></a></dt>
<dd><p>Scale color function. Default to scale_color_visualizer_discrete().</p></dd>
</dl></div> </dl></div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2> </main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 856 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 447 KiB

View file

@ -0,0 +1,80 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Not All In Operator — %notallin% • visualizeR</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Not All In Operator — %notallin%"><meta name="description" content="Tests if not all elements of `a` are contained in `b`."><meta property="og:description" content="Tests if not all elements of `a` are contained in `b`."><meta property="og:image" content="https://gnoblet.github.io/visualizeR/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.0</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/gnoblet/visualizeR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Not All In Operator</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/internals.R" class="external-link"><code>R/internals.R</code></a></small>
<div class="d-none name"><code>grapes-notallin-grapes.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Tests if not all elements of `a` are contained in `b`.</p>
</div>
<div class="section level2">
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="va">a</span> <span class="op">%notallin%</span> <span class="va">b</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
<dl><dt id="arg-a">a<a class="anchor" aria-label="anchor" href="#arg-a"></a></dt>
<dd><p>Vector to test</p></dd>
<dt id="arg-b">b<a class="anchor" aria-label="anchor" href="#arg-b"></a></dt>
<dd><p>Vector to test against</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>TRUE if at least one element of `a` is not in `b`, otherwise FALSE</p>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Noblet Guillaume.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.3.</p>
</div>
</footer></div>
</body></html>

View file

@ -0,0 +1,80 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Not In Operator — %notin% • visualizeR</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Not In Operator — %notin%"><meta name="description" content="A negation of the `"><meta property="og:description" content="A negation of the `"><meta property="og:image" content="https://gnoblet.github.io/visualizeR/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.0</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/gnoblet/visualizeR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Not In Operator</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/internals.R" class="external-link"><code>R/internals.R</code></a></small>
<div class="d-none name"><code>grapes-notin-grapes.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>A negation of the `<!-- %in%` operator that tests if elements of `a` are not in `b`. --></p>
</div>
<div class="section level2">
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="va">a</span> <span class="op">%notin%</span> <span class="va">b</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
<dl><dt id="arg-a">a<a class="anchor" aria-label="anchor" href="#arg-a"></a></dt>
<dd><p>Vector or value to test</p></dd>
<dt id="arg-b">b<a class="anchor" aria-label="anchor" href="#arg-b"></a></dt>
<dd><p>Vector to test against</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>Logical vector with TRUE for elements of `a` that are not in `b`</p>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Noblet Guillaume.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.3.</p>
</div>
</footer></div>
</body></html>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
@ -71,6 +67,24 @@
<dd>Make dumbbell chart.</dd> <dd>Make dumbbell chart.</dd>
</dl><dl><dt> </dl><dl><dt>
<code><a href="grapes-notallin-grapes.html">`%notallin%`</a></code>
</dt>
<dd>Not All In Operator</dd>
</dl><dl><dt>
<code><a href="grapes-notin-grapes.html">`%notin%`</a></code>
</dt>
<dd>Not In Operator</dd>
</dl><dl><dt>
<code><a href="lollipop.html">hlollipop()</a></code> <code><a href="lollipop.html">lollipop()</a></code>
</dt>
<dd>Simple lollipop chart</dd>
</dl><dl><dt>
<code><a href="palette.html">palette()</a></code> <code><a href="palette.html">palette()</a></code>
</dt> </dt>
@ -101,7 +115,7 @@
<dd>Scale constructors for fill and colors</dd> <dd>Scale constructors for fill and colors</dd>
</dl><dl><dt> </dl><dl><dt>
<code><a href="theme_default.html">theme_bar()</a></code> <code><a href="theme_default.html">theme_default()</a></code> <code><a href="theme_default.html">theme_dumbbell()</a></code> <code><a href="theme_default.html">theme_point()</a></code> <code><a href="theme_default.html">theme_bar()</a></code> <code><a href="theme_default.html">theme_default()</a></code> <code><a href="theme_default.html">theme_dumbbell()</a></code> <code><a href="theme_default.html">theme_lollipop()</a></code> <code><a href="theme_default.html">theme_point()</a></code>
</dt> </dt>
<dd>Custom Theme for Bar Charts</dd> <dd>Custom Theme for Bar Charts</dd>

239
reference/lollipop.html Normal file
View file

@ -0,0 +1,239 @@
<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Simple lollipop chart — hlollipop • visualizeR</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Simple lollipop chart — hlollipop"><meta name="description" content="`lollipop()` is a simple lollipop chart (dots connected to the baseline by a segment) with some customization allowed.
`hlollipop()` uses `lollipop()` with sane defaults for a horizontal lollipop chart."><meta property="og:description" content="`lollipop()` is a simple lollipop chart (dots connected to the baseline by a segment) with some customization allowed.
`hlollipop()` uses `lollipop()` with sane defaults for a horizontal lollipop chart."><meta property="og:image" content="https://gnoblet.github.io/visualizeR/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.0</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/gnoblet/visualizeR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
</ul></div>
</div>
</nav><div class="container template-reference-topic">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Simple lollipop chart</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/lollipop.R" class="external-link"><code>R/lollipop.R</code></a></small>
<div class="d-none name"><code>lollipop.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>`lollipop()` is a simple lollipop chart (dots connected to the baseline by a segment) with some customization allowed.
`hlollipop()` uses `lollipop()` with sane defaults for a horizontal lollipop chart.</p>
</div>
<div class="section level2">
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">hlollipop</span><span class="op">(</span><span class="va">...</span>, flip <span class="op">=</span> <span class="cn">TRUE</span>, theme_fun <span class="op">=</span> <span class="fu"><a href="theme_default.html">theme_lollipop</a></span><span class="op">(</span>flip <span class="op">=</span> <span class="va">flip</span><span class="op">)</span><span class="op">)</span></span>
<span></span>
<span><span class="fu">lollipop</span><span class="op">(</span></span>
<span> <span class="va">df</span>,</span>
<span> <span class="va">x</span>,</span>
<span> <span class="va">y</span>,</span>
<span> group <span class="op">=</span> <span class="st">""</span>,</span>
<span> facet <span class="op">=</span> <span class="st">""</span>,</span>
<span> order <span class="op">=</span> <span class="st">"y"</span>,</span>
<span> x_rm_na <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> y_rm_na <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> group_rm_na <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> facet_rm_na <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> y_expand <span class="op">=</span> <span class="fl">0.1</span>,</span>
<span> add_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"cat_5_main_1"</span><span class="op">)</span>,</span>
<span> add_color_guide <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> flip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> wrap <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> alpha <span class="op">=</span> <span class="fl">1</span>,</span>
<span> x_title <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> y_title <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> group_title <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> title <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> subtitle <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> caption <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> dot_size <span class="op">=</span> <span class="fl">4</span>,</span>
<span> line_size <span class="op">=</span> <span class="fl">0.8</span>,</span>
<span> line_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> dodge_width <span class="op">=</span> <span class="fl">0.9</span>,</span>
<span> theme_fun <span class="op">=</span> <span class="fu"><a href="theme_default.html">theme_lollipop</a></span><span class="op">(</span>flip <span class="op">=</span> <span class="va">flip</span>, axis_text_x_angle <span class="op">=</span> <span class="fl">0</span>, axis_text_x_vjust <span class="op">=</span> <span class="fl">0.5</span>,</span>
<span> axis_text_x_hjust <span class="op">=</span> <span class="fl">0.5</span><span class="op">)</span>,</span>
<span> scale_fill_fun <span class="op">=</span> <span class="fu"><a href="scale_color_visualizer_discrete.html">scale_fill_visualizer_discrete</a></span><span class="op">(</span><span class="op">)</span>,</span>
<span> scale_color_fun <span class="op">=</span> <span class="fu"><a href="scale_color_visualizer_discrete.html">scale_color_visualizer_discrete</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="op">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
<dl><dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>Additional arguments passed to `lollipop()`</p></dd>
<dt id="arg-flip">flip<a class="anchor" aria-label="anchor" href="#arg-flip"></a></dt>
<dd><p>TRUE or FALSE (default). Default to TRUE or horizontal lollipop plot.</p></dd>
<dt id="arg-theme-fun">theme_fun<a class="anchor" aria-label="anchor" href="#arg-theme-fun"></a></dt>
<dd><p>Whatever theme function. For no custom theme, use theme_fun = NULL.</p></dd>
<dt id="arg-df">df<a class="anchor" aria-label="anchor" href="#arg-df"></a></dt>
<dd><p>A data frame.</p></dd>
<dt id="arg-x">x<a class="anchor" aria-label="anchor" href="#arg-x"></a></dt>
<dd><p>A quoted character column or coercible as a character column.</p></dd>
<dt id="arg-y">y<a class="anchor" aria-label="anchor" href="#arg-y"></a></dt>
<dd><p>A quoted numeric column.</p></dd>
<dt id="arg-group">group<a class="anchor" aria-label="anchor" href="#arg-group"></a></dt>
<dd><p>Some quoted grouping categorical column, e.g. administrative areas or population groups.</p></dd>
<dt id="arg-facet">facet<a class="anchor" aria-label="anchor" href="#arg-facet"></a></dt>
<dd><p>Some quoted grouping categorical column, e.g. administrative areas or population groups.</p></dd>
<dt id="arg-order">order<a class="anchor" aria-label="anchor" href="#arg-order"></a></dt>
<dd><p>A character scalar specifying the order type (one of "none", "y", "grouped"). See details.</p></dd>
<dt id="arg-x-rm-na">x_rm_na<a class="anchor" aria-label="anchor" href="#arg-x-rm-na"></a></dt>
<dd><p>Remove NAs in x?</p></dd>
<dt id="arg-y-rm-na">y_rm_na<a class="anchor" aria-label="anchor" href="#arg-y-rm-na"></a></dt>
<dd><p>Remove NAs in y?</p></dd>
<dt id="arg-group-rm-na">group_rm_na<a class="anchor" aria-label="anchor" href="#arg-group-rm-na"></a></dt>
<dd><p>Remove NAs in group?</p></dd>
<dt id="arg-facet-rm-na">facet_rm_na<a class="anchor" aria-label="anchor" href="#arg-facet-rm-na"></a></dt>
<dd><p>Remove NAs in facet?</p></dd>
<dt id="arg-y-expand">y_expand<a class="anchor" aria-label="anchor" href="#arg-y-expand"></a></dt>
<dd><p>Multiplier to expand the y axis.</p></dd>
<dt id="arg-add-color">add_color<a class="anchor" aria-label="anchor" href="#arg-add-color"></a></dt>
<dd><p>Add a color to dots (if no grouping).</p></dd>
<dt id="arg-add-color-guide">add_color_guide<a class="anchor" aria-label="anchor" href="#arg-add-color-guide"></a></dt>
<dd><p>Should a legend be added?</p></dd>
<dt id="arg-wrap">wrap<a class="anchor" aria-label="anchor" href="#arg-wrap"></a></dt>
<dd><p>Should x-labels be wrapped? Number of characters.</p></dd>
<dt id="arg-alpha">alpha<a class="anchor" aria-label="anchor" href="#arg-alpha"></a></dt>
<dd><p>Fill transparency for dots.</p></dd>
<dt id="arg-x-title">x_title<a class="anchor" aria-label="anchor" href="#arg-x-title"></a></dt>
<dd><p>The x scale title. Default to NULL.</p></dd>
<dt id="arg-y-title">y_title<a class="anchor" aria-label="anchor" href="#arg-y-title"></a></dt>
<dd><p>The y scale title. Default to NULL.</p></dd>
<dt id="arg-group-title">group_title<a class="anchor" aria-label="anchor" href="#arg-group-title"></a></dt>
<dd><p>The group legend title. Default to NULL.</p></dd>
<dt id="arg-title">title<a class="anchor" aria-label="anchor" href="#arg-title"></a></dt>
<dd><p>Plot title. Default to NULL.</p></dd>
<dt id="arg-subtitle">subtitle<a class="anchor" aria-label="anchor" href="#arg-subtitle"></a></dt>
<dd><p>Plot subtitle. Default to NULL.</p></dd>
<dt id="arg-caption">caption<a class="anchor" aria-label="anchor" href="#arg-caption"></a></dt>
<dd><p>Plot caption. Default to NULL.</p></dd>
<dt id="arg-dot-size">dot_size<a class="anchor" aria-label="anchor" href="#arg-dot-size"></a></dt>
<dd><p>The size of the dots.</p></dd>
<dt id="arg-line-size">line_size<a class="anchor" aria-label="anchor" href="#arg-line-size"></a></dt>
<dd><p>The size/width of the line connecting dots to the baseline.</p></dd>
<dt id="arg-line-color">line_color<a class="anchor" aria-label="anchor" href="#arg-line-color"></a></dt>
<dd><p>The color of the line connecting dots to the baseline.</p></dd>
<dt id="arg-dodge-width">dodge_width<a class="anchor" aria-label="anchor" href="#arg-dodge-width"></a></dt>
<dd><p>Width for position dodge when using groups (controls space between grouped lollipops).</p></dd>
<dt id="arg-scale-fill-fun">scale_fill_fun<a class="anchor" aria-label="anchor" href="#arg-scale-fill-fun"></a></dt>
<dd><p>Scale fill function. Default to scale_fill_visualizer_discrete().</p></dd>
<dt id="arg-scale-color-fun">scale_color_fun<a class="anchor" aria-label="anchor" href="#arg-scale-color-fun"></a></dt>
<dd><p>Scale color function. Default to scale_color_visualizer_discrete().</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>A ggplot object</p>
</div>
<div class="section level2">
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span> <span class="co"># \dontrun{</span></span></span>
<span class="r-in"><span><span class="va">df</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>x <span class="op">=</span> <span class="va">letters</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">5</span><span class="op">]</span>, y <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">10</span>, <span class="fl">5</span>, <span class="fl">7</span>, <span class="fl">12</span>, <span class="fl">8</span><span class="op">)</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="co"># Vertical lollipop</span></span></span>
<span class="r-in"><span><span class="fu">lollipop</span><span class="op">(</span><span class="va">df</span>, <span class="st">"x"</span>, <span class="st">"y"</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="co"># Horizontal lollipop</span></span></span>
<span class="r-in"><span><span class="fu">hlollipop</span><span class="op">(</span><span class="va">df</span>, <span class="st">"x"</span>, <span class="st">"y"</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="op">}</span> <span class="co"># }</span></span></span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p>Developed by Noblet Guillaume.</p>
</div>
<div class="pkgdown-footer-right">
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.3.</p>
</div>
</footer></div>
</body></html>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
@ -161,6 +157,14 @@
<dt id="arg-theme-fun">theme_fun<a class="anchor" aria-label="anchor" href="#arg-theme-fun"></a></dt> <dt id="arg-theme-fun">theme_fun<a class="anchor" aria-label="anchor" href="#arg-theme-fun"></a></dt>
<dd><p>Whatever theme. Default to theme_point(). NULL if no theming needed.</p></dd> <dd><p>Whatever theme. Default to theme_point(). NULL if no theming needed.</p></dd>
<dt id="arg-scale-fill-fun">scale_fill_fun<a class="anchor" aria-label="anchor" href="#arg-scale-fill-fun"></a></dt>
<dd><p>Scale fill function. Default to scale_fill_visualizer_discrete().</p></dd>
<dt id="arg-scale-color-fun">scale_color_fun<a class="anchor" aria-label="anchor" href="#arg-scale-color-fun"></a></dt>
<dd><p>Scale color function. Default to scale_color_visualizer_discrete().</p></dd>
</dl></div> </dl></div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2> </main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>

View file

@ -16,10 +16,6 @@
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
@ -91,6 +87,10 @@
<dd><p>Boolean indicating whether the guide should be reversed.</p></dd> <dd><p>Boolean indicating whether the guide should be reversed.</p></dd>
<dt id="arg-title-position">title_position<a class="anchor" aria-label="anchor" href="#arg-title-position"></a></dt>
<dd><p>Position of the title. See [ggplot2::guide_legend()]'s title.position argument.</p></dd>
<dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt> <dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>Additional arguments passed to [ggplot2::discrete_scale()] if discrete or [ggplot2::scale_fill_gradient()] if continuous.</p></dd> <dd><p>Additional arguments passed to [ggplot2::discrete_scale()] if discrete or [ggplot2::scale_fill_gradient()] if continuous.</p></dd>

View file

@ -1,7 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Custom Theme for Bar Charts — theme_bar • visualizeR</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Custom Theme for Bar Charts — theme_bar"><meta name="description" content="Give some reach colors and fonts to a ggplot. <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Custom Theme for Bar Charts — theme_bar • visualizeR</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Custom Theme for Bar Charts — theme_bar"><meta name="description" content="Give some reach colors and fonts to a ggplot.
Theme for dumbbell charts based on theme_default."><meta property="og:description" content="Give some reach colors and fonts to a ggplot. Theme for dumbbell charts based on theme_default.
Theme for dumbbell charts based on theme_default."><meta property="og:image" content="https://gnoblet.github.io/visualizeR/logo.png"></head><body> A custom theme specifically designed for lollipop charts with appropriate grid lines and axis styling
based on whether the chart is flipped (horizontal) or not."><meta property="og:description" content="Give some reach colors and fonts to a ggplot.
Theme for dumbbell charts based on theme_default.
A custom theme specifically designed for lollipop charts with appropriate grid lines and axis styling
based on whether the chart is flipped (horizontal) or not."><meta property="og:image" content="https://gnoblet.github.io/visualizeR/logo.png"></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a> <a href="#main" class="visually-hidden-focusable">Skip to contents</a>
@ -18,10 +22,6 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
@ -34,13 +34,15 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<div class="row"> <div class="row">
<main id="main" class="col-md-9"><div class="page-header"> <main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Custom Theme for Bar Charts</h1> <img src="../logo.png" class="logo" alt=""><h1>Custom Theme for Bar Charts</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/theme_bar.R" class="external-link"><code>R/theme_bar.R</code></a>, <a href="https://github.com/gnoblet/visualizeR/blob/main/R/theme_default.R" class="external-link"><code>R/theme_default.R</code></a>, <a href="https://github.com/gnoblet/visualizeR/blob/main/R/theme_dumbbell.R" class="external-link"><code>R/theme_dumbbell.R</code></a>, and 1 more</small> <small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/theme_bar.R" class="external-link"><code>R/theme_bar.R</code></a>, <a href="https://github.com/gnoblet/visualizeR/blob/main/R/theme_default.R" class="external-link"><code>R/theme_default.R</code></a>, <a href="https://github.com/gnoblet/visualizeR/blob/main/R/theme_dumbbell.R" class="external-link"><code>R/theme_dumbbell.R</code></a>, and 2 more</small>
<div class="d-none name"><code>theme_default.Rd</code></div> <div class="d-none name"><code>theme_default.Rd</code></div>
</div> </div>
<div class="ref-description section level2"> <div class="ref-description section level2">
<p>Give some reach colors and fonts to a ggplot.</p> <p>Give some reach colors and fonts to a ggplot.</p>
<p>Theme for dumbbell charts based on theme_default.</p> <p>Theme for dumbbell charts based on theme_default.</p>
<p>A custom theme specifically designed for lollipop charts with appropriate grid lines and axis styling
based on whether the chart is flipped (horizontal) or not.</p>
</div> </div>
<div class="section level2"> <div class="section level2">
@ -55,18 +57,18 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<span></span> <span></span>
<span><span class="fu">theme_default</span><span class="op">(</span></span> <span><span class="fu">theme_default</span><span class="op">(</span></span>
<span> title_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> title_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
<span> title_size <span class="op">=</span> <span class="fl">16</span>,</span> <span> title_size <span class="op">=</span> <span class="fl">20</span>,</span>
<span> title_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> title_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> title_font_face <span class="op">=</span> <span class="st">"bold"</span>,</span> <span> title_font_face <span class="op">=</span> <span class="st">"bold"</span>,</span>
<span> title_hjust <span class="op">=</span> <span class="cn">NULL</span>,</span> <span> title_hjust <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> title_position_to_plot <span class="op">=</span> <span class="cn">TRUE</span>,</span> <span> title_position_to_plot <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> subtitle_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> subtitle_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
<span> subtitle_size <span class="op">=</span> <span class="fl">15</span>,</span> <span> subtitle_size <span class="op">=</span> <span class="fl">16</span>,</span>
<span> subtitle_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> subtitle_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> subtitle_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span> <span> subtitle_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span>
<span> subtitle_hjust <span class="op">=</span> <span class="cn">NULL</span>,</span> <span> subtitle_hjust <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> text_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> text_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
<span> text_size <span class="op">=</span> <span class="fl">13</span>,</span> <span> text_size <span class="op">=</span> <span class="fl">14</span>,</span>
<span> text_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> text_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> text_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span> <span> text_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span>
<span> panel_background_color <span class="op">=</span> <span class="st">"#FFFFFF"</span>,</span> <span> panel_background_color <span class="op">=</span> <span class="st">"#FFFFFF"</span>,</span>
@ -76,15 +78,15 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<span> legend_direction <span class="op">=</span> <span class="st">"horizontal"</span>,</span> <span> legend_direction <span class="op">=</span> <span class="st">"horizontal"</span>,</span>
<span> legend_justification <span class="op">=</span> <span class="st">"center"</span>,</span> <span> legend_justification <span class="op">=</span> <span class="st">"center"</span>,</span>
<span> legend_reverse <span class="op">=</span> <span class="cn">TRUE</span>,</span> <span> legend_reverse <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> legend_title_size <span class="op">=</span> <span class="fl">13</span>,</span> <span> legend_title_size <span class="op">=</span> <span class="fl">14</span>,</span>
<span> legend_title_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> legend_title_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> legend_title_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span> <span> legend_title_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span>
<span> legend_title_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> legend_title_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
<span> legend_text_size <span class="op">=</span> <span class="fl">13</span>,</span> <span> legend_text_size <span class="op">=</span> <span class="fl">14</span>,</span>
<span> legend_text_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> legend_text_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> legend_text_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span> <span> legend_text_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span>
<span> legend_text_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> legend_text_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
<span> facet_size <span class="op">=</span> <span class="fl">14</span>,</span> <span> facet_size <span class="op">=</span> <span class="fl">15</span>,</span>
<span> facet_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> facet_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> facet_font_face <span class="op">=</span> <span class="st">"bold"</span>,</span> <span> facet_font_face <span class="op">=</span> <span class="st">"bold"</span>,</span>
<span> facet_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> facet_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
@ -98,7 +100,7 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<span> axis_line_y <span class="op">=</span> <span class="cn">TRUE</span>,</span> <span> axis_line_y <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> axis_ticks_y <span class="op">=</span> <span class="cn">TRUE</span>,</span> <span> axis_ticks_y <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> axis_text_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> axis_text_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
<span> axis_text_size <span class="op">=</span> <span class="fl">13</span>,</span> <span> axis_text_size <span class="op">=</span> <span class="fl">14</span>,</span>
<span> axis_text_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> axis_text_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> axis_text_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span> <span> axis_text_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span>
<span> axis_title_size <span class="op">=</span> <span class="fl">15</span>,</span> <span> axis_title_size <span class="op">=</span> <span class="fl">15</span>,</span>
@ -120,13 +122,20 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<span> caption_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span> <span> caption_font_family <span class="op">=</span> <span class="st">"Carlito"</span>,</span>
<span> caption_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span> <span> caption_font_face <span class="op">=</span> <span class="st">"plain"</span>,</span>
<span> caption_position_to_plot <span class="op">=</span> <span class="cn">TRUE</span>,</span> <span> caption_position_to_plot <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> caption_size <span class="op">=</span> <span class="fl">11</span>,</span> <span> caption_size <span class="op">=</span> <span class="fl">12</span>,</span>
<span> caption_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span> <span> caption_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"dark_grey"</span><span class="op">)</span>,</span>
<span> <span class="va">...</span></span> <span> <span class="va">...</span></span>
<span><span class="op">)</span></span> <span><span class="op">)</span></span>
<span></span> <span></span>
<span><span class="fu">theme_dumbbell</span><span class="op">(</span><span class="op">)</span></span> <span><span class="fu">theme_dumbbell</span><span class="op">(</span><span class="op">)</span></span>
<span></span> <span></span>
<span><span class="fu">theme_lollipop</span><span class="op">(</span></span>
<span> flip <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> axis_text_x_angle <span class="op">=</span> <span class="fl">0</span>,</span>
<span> axis_text_x_vjust <span class="op">=</span> <span class="fl">0.5</span>,</span>
<span> axis_text_x_hjust <span class="op">=</span> <span class="fl">0.5</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu">theme_point</span><span class="op">(</span><span class="op">)</span></span></code></pre></div> <span><span class="fu">theme_point</span><span class="op">(</span><span class="op">)</span></span></code></pre></div>
</div> </div>
@ -135,7 +144,11 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<dl><dt id="arg-flip">flip<a class="anchor" aria-label="anchor" href="#arg-flip"></a></dt> <dl><dt id="arg-flip">flip<a class="anchor" aria-label="anchor" href="#arg-flip"></a></dt>
<dd><p>Logical. Whether the plot is flipped (horizonal).</p></dd> <dd><p>Logical. Whether the plot is flipped (horizontal).</p></dd>
<dt id="arg-add-text">add_text<a class="anchor" aria-label="anchor" href="#arg-add-text"></a></dt>
<dd><p>TRUE or FALSE. Add values as text.</p></dd>
<dt id="arg-axis-text-x-angle">axis_text_x_angle<a class="anchor" aria-label="anchor" href="#arg-axis-text-x-angle"></a></dt> <dt id="arg-axis-text-x-angle">axis_text_x_angle<a class="anchor" aria-label="anchor" href="#arg-axis-text-x-angle"></a></dt>
@ -151,19 +164,19 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<dt id="arg-title-font-family">title_font_family<a class="anchor" aria-label="anchor" href="#arg-title-font-family"></a></dt> <dt id="arg-title-font-family">title_font_family<a class="anchor" aria-label="anchor" href="#arg-title-font-family"></a></dt>
<dd><p>Title font family. Default to "Roboto Condensed".</p></dd> <dd><p>Title font family. Default to "Carlito".</p></dd>
<dt id="arg-title-size">title_size<a class="anchor" aria-label="anchor" href="#arg-title-size"></a></dt> <dt id="arg-title-size">title_size<a class="anchor" aria-label="anchor" href="#arg-title-size"></a></dt>
<dd><p>The size of the legend title. Defaults to 11.</p></dd> <dd><p>The size of the title. Defaults to 12.</p></dd>
<dt id="arg-title-color">title_color<a class="anchor" aria-label="anchor" href="#arg-title-color"></a></dt> <dt id="arg-title-color">title_color<a class="anchor" aria-label="anchor" href="#arg-title-color"></a></dt>
<dd><p>Legend title color.</p></dd> <dd><p>Title color.</p></dd>
<dt id="arg-title-font-face">title_font_face<a class="anchor" aria-label="anchor" href="#arg-title-font-face"></a></dt> <dt id="arg-title-font-face">title_font_face<a class="anchor" aria-label="anchor" href="#arg-title-font-face"></a></dt>
<dd><p>Legend title font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd> <dd><p>Title font face. Default to "bold". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-title-hjust">title_hjust<a class="anchor" aria-label="anchor" href="#arg-title-hjust"></a></dt> <dt id="arg-title-hjust">title_hjust<a class="anchor" aria-label="anchor" href="#arg-title-hjust"></a></dt>
@ -174,6 +187,30 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<dd><p>TRUE or FALSE. Positioning to plot or to panel?</p></dd> <dd><p>TRUE or FALSE. Positioning to plot or to panel?</p></dd>
<dt id="arg-subtitle-font-family">subtitle_font_family<a class="anchor" aria-label="anchor" href="#arg-subtitle-font-family"></a></dt>
<dd><p>Subtitle font family. Default to "Carlito".</p></dd>
<dt id="arg-subtitle-size">subtitle_size<a class="anchor" aria-label="anchor" href="#arg-subtitle-size"></a></dt>
<dd><p>The size of the subtitle. Defaults to 10.</p></dd>
<dt id="arg-subtitle-color">subtitle_color<a class="anchor" aria-label="anchor" href="#arg-subtitle-color"></a></dt>
<dd><p>Subtitle color.</p></dd>
<dt id="arg-subtitle-font-face">subtitle_font_face<a class="anchor" aria-label="anchor" href="#arg-subtitle-font-face"></a></dt>
<dd><p>Subtitle font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-subtitle-hjust">subtitle_hjust<a class="anchor" aria-label="anchor" href="#arg-subtitle-hjust"></a></dt>
<dd><p>Subtitle horizontal justification. Default to NULL. Use 0.5 to center the subtitle.</p></dd>
<dt id="arg-text-font-family">text_font_family<a class="anchor" aria-label="anchor" href="#arg-text-font-family"></a></dt>
<dd><p>Text font family. Default to "Carlito".</p></dd>
<dt id="arg-text-size">text_size<a class="anchor" aria-label="anchor" href="#arg-text-size"></a></dt> <dt id="arg-text-size">text_size<a class="anchor" aria-label="anchor" href="#arg-text-size"></a></dt>
<dd><p>The size of all text other than the title, subtitle and caption. Defaults to 10.</p></dd> <dd><p>The size of all text other than the title, subtitle and caption. Defaults to 10.</p></dd>
@ -226,6 +263,10 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<dd><p>Legend title font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd> <dd><p>Legend title font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-legend-title-font-family">legend_title_font_family<a class="anchor" aria-label="anchor" href="#arg-legend-title-font-family"></a></dt>
<dd><p>Legend title font family. Default to "Carlito".</p></dd>
<dt id="arg-legend-text-size">legend_text_size<a class="anchor" aria-label="anchor" href="#arg-legend-text-size"></a></dt> <dt id="arg-legend-text-size">legend_text_size<a class="anchor" aria-label="anchor" href="#arg-legend-text-size"></a></dt>
<dd><p>Legend text size.</p></dd> <dd><p>Legend text size.</p></dd>
@ -238,6 +279,30 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<dd><p>Legend text font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd> <dd><p>Legend text font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-legend-text-font-family">legend_text_font_family<a class="anchor" aria-label="anchor" href="#arg-legend-text-font-family"></a></dt>
<dd><p>Legend text font family. Default to "Carlito".</p></dd>
<dt id="arg-facet-size">facet_size<a class="anchor" aria-label="anchor" href="#arg-facet-size"></a></dt>
<dd><p>Facet font size.</p></dd>
<dt id="arg-facet-color">facet_color<a class="anchor" aria-label="anchor" href="#arg-facet-color"></a></dt>
<dd><p>Facet font color.</p></dd>
<dt id="arg-facet-font-face">facet_font_face<a class="anchor" aria-label="anchor" href="#arg-facet-font-face"></a></dt>
<dd><p>Facet font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-facet-font-family">facet_font_family<a class="anchor" aria-label="anchor" href="#arg-facet-font-family"></a></dt>
<dd><p>Facet font family. Default to "Carlito".</p></dd>
<dt id="arg-facet-bg-color">facet_bg_color<a class="anchor" aria-label="anchor" href="#arg-facet-bg-color"></a></dt>
<dd><p>Facet background color.</p></dd>
<dt id="arg-axis-x">axis_x<a class="anchor" aria-label="anchor" href="#arg-axis-x"></a></dt> <dt id="arg-axis-x">axis_x<a class="anchor" aria-label="anchor" href="#arg-axis-x"></a></dt>
<dd><p>Boolean. Do you need x-axis?</p></dd> <dd><p>Boolean. Do you need x-axis?</p></dd>
@ -270,6 +335,10 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<dd><p>Boolean. Do you need the line for the y-axis?</p></dd> <dd><p>Boolean. Do you need the line for the y-axis?</p></dd>
<dt id="arg-axis-text-font-family">axis_text_font_family<a class="anchor" aria-label="anchor" href="#arg-axis-text-font-family"></a></dt>
<dd><p>Axis text font family. Default to "Carlito".</p></dd>
<dt id="arg-axis-text-size">axis_text_size<a class="anchor" aria-label="anchor" href="#arg-axis-text-size"></a></dt> <dt id="arg-axis-text-size">axis_text_size<a class="anchor" aria-label="anchor" href="#arg-axis-text-size"></a></dt>
<dd><p>Axis text size.</p></dd> <dd><p>Axis text size.</p></dd>
@ -334,24 +403,48 @@ Theme for dumbbell charts based on theme_default."><meta property="og:image" con
<dd><p>Minor Y line size.</p></dd> <dd><p>Minor Y line size.</p></dd>
<dt id="arg-caption-font-family">caption_font_family<a class="anchor" aria-label="anchor" href="#arg-caption-font-family"></a></dt>
<dd><p>Caption font family. Default to "Carlito".</p></dd>
<dt id="arg-caption-font-face">caption_font_face<a class="anchor" aria-label="anchor" href="#arg-caption-font-face"></a></dt>
<dd><p>Caption font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-caption-position-to-plot">caption_position_to_plot<a class="anchor" aria-label="anchor" href="#arg-caption-position-to-plot"></a></dt> <dt id="arg-caption-position-to-plot">caption_position_to_plot<a class="anchor" aria-label="anchor" href="#arg-caption-position-to-plot"></a></dt>
<dd><p>TRUE or FALSE. Positioning to plot or to panel?</p></dd> <dd><p>TRUE or FALSE. Positioning to plot or to panel?</p></dd>
<dt id="arg-caption-size">caption_size<a class="anchor" aria-label="anchor" href="#arg-caption-size"></a></dt>
<dd><p>The size of the caption. Defaults to 10.</p></dd>
<dt id="arg-caption-color">caption_color<a class="anchor" aria-label="anchor" href="#arg-caption-color"></a></dt>
<dd><p>Caption color.</p></dd>
<dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt> <dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>Additional arguments passed to [ggplot2::theme()].</p></dd> <dd><p>Additional arguments passed to [ggplot2::theme()].</p></dd>
<dt id="arg-font-family">font_family<a class="anchor" aria-label="anchor" href="#arg-font-family"></a></dt>
<dd><p>The font family for all plot's texts. Default to "Segoe UI".</p></dd>
</dl></div> </dl></div>
<div class="section level2"> <div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2> <h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>A custom theme object.</p> <p>A custom theme object.</p>
<p>A ggplot2 theme object</p>
<p>A custom theme object.</p> <p>A custom theme object.</p>
</div> </div>
<div class="section level2">
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span> <span class="co"># \dontrun{</span></span></span>
<span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://ggplot2.tidyverse.org" class="external-link">ggplot2</a></span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="va">df</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>x <span class="op">=</span> <span class="va">letters</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">5</span><span class="op">]</span>, y <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">10</span>, <span class="fl">5</span>, <span class="fl">7</span>, <span class="fl">12</span>, <span class="fl">8</span><span class="op">)</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html" class="external-link">ggplot</a></span><span class="op">(</span><span class="va">df</span>, <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/aes.html" class="external-link">aes</a></span><span class="op">(</span><span class="va">x</span>, <span class="va">y</span><span class="op">)</span><span class="op">)</span> <span class="op">+</span></span></span>
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/geom_point.html" class="external-link">geom_point</a></span><span class="op">(</span><span class="op">)</span> <span class="op">+</span></span></span>
<span class="r-in"><span> <span class="fu">theme_lollipop</span><span class="op">(</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="op">}</span> <span class="co"># }</span></span></span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2> </main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
</nav></aside></div> </nav></aside></div>

View file

@ -0,0 +1,8 @@
<html>
<head>
<meta http-equiv="refresh" content="0;URL=https://gnoblet.github.io/visualizeR/reference/theme_default.html" />
<meta name="robots" content="noindex">
<link rel="canonical" href="https://gnoblet.github.io/visualizeR/reference/theme_default.html">
</head>
</html>

View file

@ -18,10 +18,6 @@ It basically provides colors as hex codes, color palettes, and some viz function
<div id="navbar" class="collapse navbar-collapse ms-3"> <div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li> <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
<ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/bar_charts.html">Bar charts</a></li>
</ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li> <li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search"> </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li> <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>

File diff suppressed because one or more lines are too long

View file

@ -1,8 +1,6 @@
<urlset xmlns = 'http://www.sitemaps.org/schemas/sitemap/0.9'> <urlset xmlns = 'http://www.sitemaps.org/schemas/sitemap/0.9'>
<url><loc>https://gnoblet.github.io/visualizeR/404.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/404.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/LICENSE.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/LICENSE.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/articles/bar_charts.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/articles/index.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/authors.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/authors.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/index.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/index.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/news/index.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/news/index.html</loc></url>
@ -10,7 +8,10 @@
<url><loc>https://gnoblet.github.io/visualizeR/reference/check_vars_in_df.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/reference/check_vars_in_df.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/color.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/reference/color.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/dumbbell.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/reference/dumbbell.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/grapes-notallin-grapes.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/grapes-notin-grapes.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/index.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/reference/index.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/lollipop.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/palette.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/reference/palette.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/palette_gen.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/reference/palette_gen.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/point.html</loc></url> <url><loc>https://gnoblet.github.io/visualizeR/reference/point.html</loc></url>