Add reverse arg to hbar()
This commit is contained in:
parent
956ffb2bdc
commit
15ab2819c7
31 changed files with 321 additions and 145 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
Package: visualizeR
|
Package: visualizeR
|
||||||
Type: Package
|
Type: Package
|
||||||
Title: What a color! What a viz!
|
Title: What a color! What a viz!
|
||||||
Version: 0.1.3.9000
|
Version: 0.1.4.9000
|
||||||
Authors@R: c(
|
Authors@R: c(
|
||||||
person(
|
person(
|
||||||
'Noblet', 'Guillaume',
|
'Noblet', 'Guillaume',
|
||||||
|
|
@ -17,7 +17,7 @@ Depends: R (>= 4.1.0)
|
||||||
License: GPL (>= 3)
|
License: GPL (>= 3)
|
||||||
Encoding: UTF-8
|
Encoding: UTF-8
|
||||||
LazyData: true
|
LazyData: true
|
||||||
RoxygenNote: 7.1.2
|
RoxygenNote: 7.2.0
|
||||||
Imports: ggplot2, rlang, grDevices, simplevis, glue, scales
|
Imports: ggplot2, rlang, grDevices, simplevis, glue, scales
|
||||||
Suggests: knitr, sf
|
Suggests: knitr, sf
|
||||||
VignetteBuilder: knitr
|
VignetteBuilder: knitr
|
||||||
|
|
|
||||||
6
NEWS.md
6
NEWS.md
|
|
@ -1,3 +1,9 @@
|
||||||
|
# visualizeR 0.1.4.9000
|
||||||
|
|
||||||
|
* `hbar()`gains a new boolean argument `reverse` to pass to `pal_reach()` or `pal_agora()`, indicating if the color palette should be reversed or not.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# visualizeR 0.1.3.9000
|
# visualizeR 0.1.3.9000
|
||||||
|
|
||||||
* Small change to `hbar()`: removes error arg within `simplevis::gg_hbar()` call.
|
* Small change to `hbar()`: removes error arg within `simplevis::gg_hbar()` call.
|
||||||
|
|
|
||||||
14
R/hbar.R
14
R/hbar.R
|
|
@ -12,19 +12,20 @@
|
||||||
#' @param group_title The group legend title. Defaut to NULL
|
#' @param group_title The group legend title. Defaut to NULL
|
||||||
#' @param font_family The font family. Default to "Leelawadee"
|
#' @param font_family The font family. Default to "Leelawadee"
|
||||||
#' @param stack Should the chart be stacked? Default to "FALSE" (dodge)
|
#' @param stack Should the chart be stacked? Default to "FALSE" (dodge)
|
||||||
|
#' @param reverse Boolean indicating whether the color palette should be reversed
|
||||||
#' @param ... Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"
|
#' @param ... Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"
|
||||||
#'
|
#'
|
||||||
#' @return A horizontal bar chart
|
#' @return A horizontal bar chart
|
||||||
#'
|
#'
|
||||||
#' @export
|
#' @export
|
||||||
hbar_percent <- function(.tbl, x, y, group = NULL, initiative = "reach", x_title = "", y_title = "", group_title = NULL, font_family = "Leelawadee", stack = FALSE, ...){
|
hbar_percent <- function(.tbl, x, y, group = NULL, initiative = "reach", x_title = "", y_title = "", group_title = NULL, font_family = "Leelawadee", stack = FALSE, reverse = FALSE, ...){
|
||||||
|
|
||||||
|
|
||||||
if (!(initiative %in% c("reach", "agora", "impact"))) rlang::abort(c("Wrong `initiative` arg", "*" = paste0("Arg `initiative` cannot be: ", initiative), "i" = "It must be one of 'reach' or 'agora' or 'impact'"))
|
if (!(initiative %in% c("reach", "agora", "impact"))) rlang::abort(c("Wrong `initiative` arg", "*" = paste0("Arg `initiative` cannot be: ", initiative), "i" = "It must be one of 'reach' or 'agora' or 'impact'"))
|
||||||
|
|
||||||
if (initiative == "reach") main_col <- cols_reach("main_grey")
|
if (initiative == "reach") main_col <- pal_reach("main", reverse = reverse)
|
||||||
|
|
||||||
if (initiative == "agora") main_col <- cols_agora("main_bordeaux")
|
if (initiative == "agora") main_col <- pal_agora("main", reverse = reverse)
|
||||||
|
|
||||||
if (initiative == "impact") rlang::abort("IMPACT colors are under development")
|
if (initiative == "impact") rlang::abort("IMPACT colors are under development")
|
||||||
|
|
||||||
|
|
@ -78,19 +79,20 @@ hbar_percent <- function(.tbl, x, y, group = NULL, initiative = "reach", x_title
|
||||||
#' @param group_title The group legend title. Defaut to NULL
|
#' @param group_title The group legend title. Defaut to NULL
|
||||||
#' @param font_family The font family. Default to "Leelawadee"
|
#' @param font_family The font family. Default to "Leelawadee"
|
||||||
#' @param stack Should the chart be stacked? Default to "FALSE" (dodge)
|
#' @param stack Should the chart be stacked? Default to "FALSE" (dodge)
|
||||||
|
#' @param reverse Boolean indicating whether the color palette should be reversed
|
||||||
#' @param ... Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"
|
#' @param ... Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"
|
||||||
#'
|
#'
|
||||||
#' @return A horizontal bar chart
|
#' @return A horizontal bar chart
|
||||||
#'
|
#'
|
||||||
#' @export
|
#' @export
|
||||||
hbar <- function(.tbl, x, y, group = NULL, initiative = "reach", x_title = "", y_title = "", group_title = NULL, font_family = "Leelawadee", stack = FALSE, ...){
|
hbar <- function(.tbl, x, y, group = NULL, initiative = "reach", x_title = "", y_title = "", group_title = NULL, font_family = "Leelawadee", stack = FALSE, reverse = FALSE,...){
|
||||||
|
|
||||||
|
|
||||||
if (!(initiative %in% c("reach", "agora", "impact"))) rlang::abort(c("Wrong `initiative` arg", "*" = paste0("Arg `initiative` cannot be: ", initiative), "i" = "It must be one of 'reach' or 'agora' or 'impact'"))
|
if (!(initiative %in% c("reach", "agora", "impact"))) rlang::abort(c("Wrong `initiative` arg", "*" = paste0("Arg `initiative` cannot be: ", initiative), "i" = "It must be one of 'reach' or 'agora' or 'impact'"))
|
||||||
|
|
||||||
if (initiative == "reach") main_col <- cols_reach("main_grey")
|
if (initiative == "reach") main_col <- pal_reach("main", reverse = reverse)
|
||||||
|
|
||||||
if (initiative == "agora") main_col <- cols_agora("main_bordeaux")
|
if (initiative == "agora") main_col <- pal_agora("main", reverse = reverse)
|
||||||
|
|
||||||
if (initiative == "impact") rlang::abort("IMPACT colors are under development")
|
if (initiative == "impact") rlang::abort("IMPACT colors are under development")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="https://gnoblet.github.io/visualizeR/index.html">visualizeR</a>
|
<a class="navbar-brand me-2" href="https://gnoblet.github.io/visualizeR/index.html">visualizeR</a>
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -83,7 +83,7 @@ Content not found. Please use links in the navbar.
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p>
|
<p></p>
|
||||||
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -250,7 +250,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -78,7 +78,7 @@ https://gnoblet.github.io/visualizeR/},
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
2
docs/deps/bootstrap-5.1.0/bootstrap.min.css
vendored
2
docs/deps/bootstrap-5.1.0/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -81,8 +81,8 @@
|
||||||
</h2>
|
</h2>
|
||||||
<p>You can install the last version of visualizeR from <a href="https://github.com/" class="external-link">GitHub</a> with:</p>
|
<p>You can install the last version of visualizeR from <a href="https://github.com/" class="external-link">GitHub</a> with:</p>
|
||||||
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
|
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
|
||||||
<code class="sourceCode R"><span class="co"># install.packages("devtools")</span>
|
<code class="sourceCode R"><span><span class="co"># install.packages("devtools")</span></span>
|
||||||
<span class="fu">devtools</span><span class="fu">::</span><span class="fu"><a href="https://devtools.r-lib.org/reference/remote-reexports.html" class="external-link">install_github</a></span><span class="op">(</span><span class="st">"gnoblet/visualizeR"</span>, build_vignettes <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></code></pre></div>
|
<span><span class="fu">devtools</span><span class="fu">::</span><span class="fu"><a href="https://remotes.r-lib.org/reference/install_github.html" class="external-link">install_github</a></span><span class="op">(</span><span class="st">"gnoblet/visualizeR"</span>, build_vignettes <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="roadmap">Roadmap<a class="anchor" aria-label="anchor" href="#roadmap"></a>
|
<h2 id="roadmap">Roadmap<a class="anchor" aria-label="anchor" href="#roadmap"></a>
|
||||||
|
|
@ -118,9 +118,9 @@ Add some interactive functions (maps and graphs)</li>
|
||||||
<h2 id="example">Example<a class="anchor" aria-label="anchor" href="#example"></a>
|
<h2 id="example">Example<a class="anchor" aria-label="anchor" href="#example"></a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
|
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
|
||||||
<code class="sourceCode R"><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://github.com/gnoblet/visualizeR" class="external-link">visualizeR</a></span><span class="op">)</span>
|
<code class="sourceCode R"><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://github.com/gnoblet/visualizeR" class="external-link">visualizeR</a></span><span class="op">)</span></span>
|
||||||
<span class="co"># Get all saved REACH colors, named</span>
|
<span><span class="co"># Get all saved REACH colors, named</span></span>
|
||||||
<span class="fu"><a href="reference/cols_reach.html">cols_reach</a></span><span class="op">(</span>unnamed <span class="op">=</span> <span class="cn">F</span><span class="op">)</span></code></pre></div>
|
<span><span class="fu"><a href="reference/cols_reach.html">cols_reach</a></span><span class="op">(</span>unnamed <span class="op">=</span> <span class="cn">F</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main><aside class="col-md-3"><div class="links">
|
</main><aside class="col-md-3"><div class="links">
|
||||||
|
|
@ -166,7 +166,7 @@ Add some interactive functions (maps and graphs)</li>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p>
|
<p></p>
|
||||||
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -44,6 +44,11 @@
|
||||||
<small>Source: <a href="https://github.com/gnoblet/visualizeR/blob/HEAD/NEWS.md" class="external-link"><code>NEWS.md</code></a></small>
|
<small>Source: <a href="https://github.com/gnoblet/visualizeR/blob/HEAD/NEWS.md" class="external-link"><code>NEWS.md</code></a></small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 class="pkg-version" data-toc-text="0.1.4.9000" id="visualizer-0149000">visualizeR 0.1.4.9000<a class="anchor" aria-label="anchor" href="#visualizer-0149000"></a></h2>
|
||||||
|
<ul><li>
|
||||||
|
<code><a href="../reference/hbar.html">hbar()</a></code>gains a new boolean argument <code>reverse</code> to pass to <code><a href="../reference/pal_reach.html">pal_reach()</a></code> or <code><a href="../reference/pal_agora.html">pal_agora()</a></code>, indicating if the color palette should be reversed or not.</li>
|
||||||
|
</ul><hr></div>
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 class="pkg-version" data-toc-text="0.1.3.9000" id="visualizer-0139000">visualizeR 0.1.3.9000<a class="anchor" aria-label="anchor" href="#visualizer-0139000"></a></h2>
|
<h2 class="pkg-version" data-toc-text="0.1.3.9000" id="visualizer-0139000">visualizeR 0.1.3.9000<a class="anchor" aria-label="anchor" href="#visualizer-0139000"></a></h2>
|
||||||
<ul><li>Small change to <code><a href="../reference/hbar.html">hbar()</a></code>: removes error arg within <code><a href="https://statisticsnz.github.io/simplevis/reference/gg_hbar.html" class="external-link">simplevis::gg_hbar()</a></code> call.</li>
|
<ul><li>Small change to <code><a href="../reference/hbar.html">hbar()</a></code>: removes error arg within <code><a href="https://statisticsnz.github.io/simplevis/reference/gg_hbar.html" class="external-link">simplevis::gg_hbar()</a></code> call.</li>
|
||||||
|
|
@ -75,7 +80,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
pandoc: 2.17.1.1
|
pandoc: 2.17.1.1
|
||||||
pkgdown: 2.0.3
|
pkgdown: 2.0.5
|
||||||
pkgdown_sha: ~
|
pkgdown_sha: ~
|
||||||
articles: {}
|
articles: {}
|
||||||
last_built: 2022-07-06T22:57Z
|
last_built: 2022-07-07T00:14Z
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,21 +51,28 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">abort_bad_argument</span><span class="op">(</span><span class="va">arg</span>, <span class="va">must</span>, not <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">abort_bad_argument</span><span class="op">(</span><span class="va">arg</span>, <span class="va">must</span>, not <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>arg</dt>
|
<dl><dt>arg</dt>
|
||||||
<dd><p>An argument</p></dd>
|
<dd><p>An argument</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>must</dt>
|
<dt>must</dt>
|
||||||
<dd><p>What arg must be</p></dd>
|
<dd><p>What arg must be</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>not</dt>
|
<dt>not</dt>
|
||||||
<dd><p>Optional. What arg must not be.</p></dd>
|
<dd><p>Optional. What arg must not be.</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 stop statement</p>
|
|
||||||
|
|
||||||
|
<p>A stop statement</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -77,7 +84,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,19 +51,24 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">buffer_bbox</span><span class="op">(</span><span class="va">sf_obj</span>, buffer <span class="op">=</span> <span class="fl">0</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">buffer_bbox</span><span class="op">(</span><span class="va">sf_obj</span>, buffer <span class="op">=</span> <span class="fl">0</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>sf_obj</dt>
|
<dl><dt>sf_obj</dt>
|
||||||
<dd><p>A `sf` object</p></dd>
|
<dd><p>A `sf` object</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>buffer</dt>
|
<dt>buffer</dt>
|
||||||
<dd><p>A buffer, either one value or a vector of 4 values (left, bottom, right, top). Default to 0.</p></dd>
|
<dd><p>A buffer, either one value or a vector of 4 values (left, bottom, right, top). Default to 0.</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 bbox with a buffer</p>
|
|
||||||
|
|
||||||
|
<p>A bbox with a buffer</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -75,7 +80,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,19 +51,24 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">cols_agora</span><span class="op">(</span><span class="va">...</span>, unnamed <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">cols_agora</span><span class="op">(</span><span class="va">...</span>, unnamed <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>...</dt>
|
<dl><dt>...</dt>
|
||||||
<dd><p>Character names of reach colors. If NULL returns all colors</p></dd>
|
<dd><p>Character names of reach colors. If NULL returns all colors</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>unnamed</dt>
|
<dt>unnamed</dt>
|
||||||
<dd><p>Should the output vector be unnamed? Default to `TRUE`</p></dd>
|
<dd><p>Should the output vector be unnamed? Default to `TRUE`</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>An hex code or hex codes named or unnamed</p>
|
|
||||||
|
|
||||||
|
<p>An hex code or hex codes named or unnamed</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
||||||
|
|
@ -79,7 +84,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,19 +51,24 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">cols_reach</span><span class="op">(</span><span class="va">...</span>, unnamed <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">cols_reach</span><span class="op">(</span><span class="va">...</span>, unnamed <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>...</dt>
|
<dl><dt>...</dt>
|
||||||
<dd><p>Character names of reach colors. If NULL returns all colors</p></dd>
|
<dd><p>Character names of reach colors. If NULL returns all colors</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>unnamed</dt>
|
<dt>unnamed</dt>
|
||||||
<dd><p>Should the output vector be unnamed? Default to `TRUE`</p></dd>
|
<dd><p>Should the output vector be unnamed? Default to `TRUE`</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>An hex code or hex codes named or unnamed</p>
|
|
||||||
|
|
||||||
|
<p>An hex code or hex codes named or unnamed</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
||||||
|
|
@ -79,7 +84,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,49 +51,77 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">hbar</span><span class="op">(</span>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">hbar</span><span class="op">(</span></span>
|
||||||
<span class="va">.tbl</span>,
|
<span> <span class="va">.tbl</span>,</span>
|
||||||
<span class="va">x</span>,
|
<span> <span class="va">x</span>,</span>
|
||||||
<span class="va">y</span>,
|
<span> <span class="va">y</span>,</span>
|
||||||
group <span class="op">=</span> <span class="cn">NULL</span>,
|
<span> group <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||||
initiative <span class="op">=</span> <span class="st">"reach"</span>,
|
<span> initiative <span class="op">=</span> <span class="st">"reach"</span>,</span>
|
||||||
x_title <span class="op">=</span> <span class="st">""</span>,
|
<span> x_title <span class="op">=</span> <span class="st">""</span>,</span>
|
||||||
y_title <span class="op">=</span> <span class="st">""</span>,
|
<span> y_title <span class="op">=</span> <span class="st">""</span>,</span>
|
||||||
group_title <span class="op">=</span> <span class="cn">NULL</span>,
|
<span> group_title <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||||
font_family <span class="op">=</span> <span class="st">"Leelawadee"</span>,
|
<span> font_family <span class="op">=</span> <span class="st">"Leelawadee"</span>,</span>
|
||||||
stack <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> stack <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="va">...</span>
|
<span> reverse <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="op">)</span></code></pre></div>
|
<span> <span class="va">...</span></span>
|
||||||
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>.tbl</dt>
|
<dl><dt>.tbl</dt>
|
||||||
<dd><p>Some data</p></dd>
|
<dd><p>Some data</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>x</dt>
|
<dt>x</dt>
|
||||||
<dd><p>Some numeric column on the x scale</p></dd>
|
<dd><p>Some numeric column on the x scale</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>y</dt>
|
<dt>y</dt>
|
||||||
<dd><p>Some column on the y scale</p></dd>
|
<dd><p>Some column on the y scale</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>group</dt>
|
<dt>group</dt>
|
||||||
<dd><p>Some grouping categorical column, e.g. administrative areas</p></dd>
|
<dd><p>Some grouping categorical column, e.g. administrative areas</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>initiative</dt>
|
<dt>initiative</dt>
|
||||||
<dd><p>Either "reach" or "agora" or "impact" for the color palette</p></dd>
|
<dd><p>Either "reach" or "agora" or "impact" for the color palette</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>x_title</dt>
|
<dt>x_title</dt>
|
||||||
<dd><p>The x scale title. Default to empty string</p></dd>
|
<dd><p>The x scale title. Default to empty string</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>y_title</dt>
|
<dt>y_title</dt>
|
||||||
<dd><p>The y scale title. Default to empty string</p></dd>
|
<dd><p>The y scale title. Default to empty string</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>group_title</dt>
|
<dt>group_title</dt>
|
||||||
<dd><p>The group legend title. Defaut to NULL</p></dd>
|
<dd><p>The group legend title. Defaut to NULL</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>font_family</dt>
|
<dt>font_family</dt>
|
||||||
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>stack</dt>
|
<dt>stack</dt>
|
||||||
<dd><p>Should the chart be stacked? Default to "FALSE" (dodge)</p></dd>
|
<dd><p>Should the chart be stacked? Default to "FALSE" (dodge)</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt>reverse</dt>
|
||||||
|
<dd><p>Boolean indicating whether the color palette should be reversed</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>...</dt>
|
<dt>...</dt>
|
||||||
<dd><p>Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"</p></dd>
|
<dd><p>Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"</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 horizontal bar chart</p>
|
|
||||||
|
|
||||||
|
<p>A horizontal bar chart</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -105,7 +133,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,49 +51,77 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">hbar_percent</span><span class="op">(</span>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">hbar_percent</span><span class="op">(</span></span>
|
||||||
<span class="va">.tbl</span>,
|
<span> <span class="va">.tbl</span>,</span>
|
||||||
<span class="va">x</span>,
|
<span> <span class="va">x</span>,</span>
|
||||||
<span class="va">y</span>,
|
<span> <span class="va">y</span>,</span>
|
||||||
group <span class="op">=</span> <span class="cn">NULL</span>,
|
<span> group <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||||
initiative <span class="op">=</span> <span class="st">"reach"</span>,
|
<span> initiative <span class="op">=</span> <span class="st">"reach"</span>,</span>
|
||||||
x_title <span class="op">=</span> <span class="st">""</span>,
|
<span> x_title <span class="op">=</span> <span class="st">""</span>,</span>
|
||||||
y_title <span class="op">=</span> <span class="st">""</span>,
|
<span> y_title <span class="op">=</span> <span class="st">""</span>,</span>
|
||||||
group_title <span class="op">=</span> <span class="cn">NULL</span>,
|
<span> group_title <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||||
font_family <span class="op">=</span> <span class="st">"Leelawadee"</span>,
|
<span> font_family <span class="op">=</span> <span class="st">"Leelawadee"</span>,</span>
|
||||||
stack <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> stack <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="va">...</span>
|
<span> reverse <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="op">)</span></code></pre></div>
|
<span> <span class="va">...</span></span>
|
||||||
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>.tbl</dt>
|
<dl><dt>.tbl</dt>
|
||||||
<dd><p>Some data</p></dd>
|
<dd><p>Some data</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>x</dt>
|
<dt>x</dt>
|
||||||
<dd><p>Some numeric column on the x scale</p></dd>
|
<dd><p>Some numeric column on the x scale</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>y</dt>
|
<dt>y</dt>
|
||||||
<dd><p>Some column on the y scale</p></dd>
|
<dd><p>Some column on the y scale</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>group</dt>
|
<dt>group</dt>
|
||||||
<dd><p>Some grouping categorical column, e.g. administrative areas</p></dd>
|
<dd><p>Some grouping categorical column, e.g. administrative areas</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>initiative</dt>
|
<dt>initiative</dt>
|
||||||
<dd><p>Either "reach" or "agora" or "impact" for the color palette</p></dd>
|
<dd><p>Either "reach" or "agora" or "impact" for the color palette</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>x_title</dt>
|
<dt>x_title</dt>
|
||||||
<dd><p>The x scale title. Default to empty string</p></dd>
|
<dd><p>The x scale title. Default to empty string</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>y_title</dt>
|
<dt>y_title</dt>
|
||||||
<dd><p>The y scale title. Default to empty string</p></dd>
|
<dd><p>The y scale title. Default to empty string</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>group_title</dt>
|
<dt>group_title</dt>
|
||||||
<dd><p>The group legend title. Defaut to NULL</p></dd>
|
<dd><p>The group legend title. Defaut to NULL</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>font_family</dt>
|
<dt>font_family</dt>
|
||||||
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>stack</dt>
|
<dt>stack</dt>
|
||||||
<dd><p>Should the chart be stacked? Default to "FALSE" (dodge)</p></dd>
|
<dd><p>Should the chart be stacked? Default to "FALSE" (dodge)</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt>reverse</dt>
|
||||||
|
<dd><p>Boolean indicating whether the color palette should be reversed</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>...</dt>
|
<dt>...</dt>
|
||||||
<dd><p>Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"</p></dd>
|
<dd><p>Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"</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 horizontal bar chart</p>
|
|
||||||
|
|
||||||
|
<p>A horizontal bar chart</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -105,7 +133,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,23 +51,32 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">if_not_in_stop</span><span class="op">(</span><span class="va">.tbl</span>, <span class="va">cols</span>, <span class="va">df</span>, arg <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">if_not_in_stop</span><span class="op">(</span><span class="va">.tbl</span>, <span class="va">cols</span>, <span class="va">df</span>, arg <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>.tbl</dt>
|
<dl><dt>.tbl</dt>
|
||||||
<dd><p>A tibble</p></dd>
|
<dd><p>A tibble</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>cols</dt>
|
<dt>cols</dt>
|
||||||
<dd><p>A vector of column names (quoted)</p></dd>
|
<dd><p>A vector of column names (quoted)</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>df</dt>
|
<dt>df</dt>
|
||||||
<dd><p>Provide the tibble name as a character string</p></dd>
|
<dd><p>Provide the tibble name as a character string</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>arg</dt>
|
<dt>arg</dt>
|
||||||
<dd><p>Default to NULL.</p></dd>
|
<dd><p>Default to NULL.</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 stop statement</p>
|
|
||||||
|
|
||||||
|
<p>A stop statement</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -79,7 +88,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,23 +51,32 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">if_vec_not_in_stop</span><span class="op">(</span><span class="va">vec</span>, <span class="va">cols</span>, <span class="va">vec_name</span>, arg <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">if_vec_not_in_stop</span><span class="op">(</span><span class="va">vec</span>, <span class="va">cols</span>, <span class="va">vec_name</span>, arg <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>vec</dt>
|
<dl><dt>vec</dt>
|
||||||
<dd><p>A vector of character strings</p></dd>
|
<dd><p>A vector of character strings</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>cols</dt>
|
<dt>cols</dt>
|
||||||
<dd><p>A set of character strings</p></dd>
|
<dd><p>A set of character strings</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>vec_name</dt>
|
<dt>vec_name</dt>
|
||||||
<dd><p>Provide the vector name as a character string</p></dd>
|
<dd><p>Provide the vector name as a character string</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>arg</dt>
|
<dt>arg</dt>
|
||||||
<dd><p>Default to NULL.</p></dd>
|
<dd><p>Default to NULL.</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 stop statement if some elements of vec are not in cols</p>
|
|
||||||
|
|
||||||
|
<p>A stop statement if some elements of vec are not in cols</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -79,7 +88,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,31 +51,42 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">pal_agora</span><span class="op">(</span>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">pal_agora</span><span class="op">(</span></span>
|
||||||
palette <span class="op">=</span> <span class="st">"main"</span>,
|
<span> palette <span class="op">=</span> <span class="st">"main"</span>,</span>
|
||||||
reverse <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> reverse <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
color_ramp_palette <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> color_ramp_palette <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
show_palettes <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> show_palettes <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="va">...</span>
|
<span> <span class="va">...</span></span>
|
||||||
<span class="op">)</span></code></pre></div>
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>palette</dt>
|
<dl><dt>palette</dt>
|
||||||
<dd><p>Character name of a palette in AGORA palettes</p></dd>
|
<dd><p>Character name of a palette in AGORA palettes</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>reverse</dt>
|
<dt>reverse</dt>
|
||||||
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>color_ramp_palette</dt>
|
<dt>color_ramp_palette</dt>
|
||||||
<dd><p>Should the output be a `grDevices::colorRampPalette` function or a vector of hex codes? Default to the former with `TRUE`</p></dd>
|
<dd><p>Should the output be a `grDevices::colorRampPalette` function or a vector of hex codes? Default to the former with `TRUE`</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>show_palettes</dt>
|
<dt>show_palettes</dt>
|
||||||
<dd><p>Should the ouput be the set of palettes names to pick from? Default to `FALSE`</p></dd>
|
<dd><p>Should the ouput be the set of palettes names to pick from? Default to `FALSE`</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>...</dt>
|
<dt>...</dt>
|
||||||
<dd><p>Additional arguments to pass to colorRampPalette()</p></dd>
|
<dd><p>Additional arguments to pass to colorRampPalette()</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 color palette</p>
|
|
||||||
|
|
||||||
|
<p>A color palette</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -87,7 +98,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,31 +51,42 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">pal_reach</span><span class="op">(</span>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">pal_reach</span><span class="op">(</span></span>
|
||||||
palette <span class="op">=</span> <span class="st">"main"</span>,
|
<span> palette <span class="op">=</span> <span class="st">"main"</span>,</span>
|
||||||
reverse <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> reverse <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
color_ramp_palette <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> color_ramp_palette <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
show_palettes <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> show_palettes <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="va">...</span>
|
<span> <span class="va">...</span></span>
|
||||||
<span class="op">)</span></code></pre></div>
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>palette</dt>
|
<dl><dt>palette</dt>
|
||||||
<dd><p>Character name of a palette in REACH palettes</p></dd>
|
<dd><p>Character name of a palette in REACH palettes</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>reverse</dt>
|
<dt>reverse</dt>
|
||||||
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>color_ramp_palette</dt>
|
<dt>color_ramp_palette</dt>
|
||||||
<dd><p>Should the output be a `grDevices::colorRampPalette` function or a vector of hex codes? Default to the former with `TRUE`</p></dd>
|
<dd><p>Should the output be a `grDevices::colorRampPalette` function or a vector of hex codes? Default to the former with `TRUE`</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>show_palettes</dt>
|
<dt>show_palettes</dt>
|
||||||
<dd><p>Should the ouput be the set of palettes names to pick from? Default to `FALSE`</p></dd>
|
<dd><p>Should the ouput be the set of palettes names to pick from? Default to `FALSE`</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>...</dt>
|
<dt>...</dt>
|
||||||
<dd><p>Additional arguments to pass to colorRampPalette()</p></dd>
|
<dd><p>Additional arguments to pass to colorRampPalette()</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 color palette</p>
|
|
||||||
|
|
||||||
|
<p>A color palette</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -87,7 +98,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,32 +51,43 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">scale_color</span><span class="op">(</span>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">scale_color</span><span class="op">(</span></span>
|
||||||
initiative <span class="op">=</span> <span class="st">"reach"</span>,
|
<span> initiative <span class="op">=</span> <span class="st">"reach"</span>,</span>
|
||||||
palette <span class="op">=</span> <span class="st">"main"</span>,
|
<span> palette <span class="op">=</span> <span class="st">"main"</span>,</span>
|
||||||
discrete <span class="op">=</span> <span class="cn">TRUE</span>,
|
<span> discrete <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||||
reverse <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> reverse <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="va">...</span>
|
<span> <span class="va">...</span></span>
|
||||||
<span class="op">)</span></code></pre></div>
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>initiative</dt>
|
<dl><dt>initiative</dt>
|
||||||
<dd><p>Either "reach" or "agora</p></dd>
|
<dd><p>Either "reach" or "agora</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>palette</dt>
|
<dt>palette</dt>
|
||||||
<dd><p>Palette name from `pal_reach()` or `pal_agora()`</p></dd>
|
<dd><p>Palette name from `pal_reach()` or `pal_agora()`</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>discrete</dt>
|
<dt>discrete</dt>
|
||||||
<dd><p>Boolean indicating whether color aesthetic is discrete or not</p></dd>
|
<dd><p>Boolean indicating whether color aesthetic is discrete or not</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>reverse</dt>
|
<dt>reverse</dt>
|
||||||
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>...</dt>
|
<dt>...</dt>
|
||||||
<dd><p>Additional arguments passed to discrete_scale() or
|
<dd><p>Additional arguments passed to discrete_scale() or
|
||||||
scale_color_gradient(), used respectively when discrete is TRUE or FALSE</p></dd>
|
scale_color_gradient(), used respectively when discrete is TRUE or FALSE</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 color scale for ggplot</p>
|
|
||||||
|
|
||||||
|
<p>A color scale for ggplot</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -88,7 +99,7 @@ scale_color_gradient(), used respectively when discrete is TRUE or FALSE</p></dd
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,32 +51,43 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">scale_fill</span><span class="op">(</span>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">scale_fill</span><span class="op">(</span></span>
|
||||||
initiative <span class="op">=</span> <span class="st">"reach"</span>,
|
<span> initiative <span class="op">=</span> <span class="st">"reach"</span>,</span>
|
||||||
palette <span class="op">=</span> <span class="st">"main"</span>,
|
<span> palette <span class="op">=</span> <span class="st">"main"</span>,</span>
|
||||||
discrete <span class="op">=</span> <span class="cn">TRUE</span>,
|
<span> discrete <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||||
reverse <span class="op">=</span> <span class="cn">FALSE</span>,
|
<span> reverse <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
<span class="va">...</span>
|
<span> <span class="va">...</span></span>
|
||||||
<span class="op">)</span></code></pre></div>
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>initiative</dt>
|
<dl><dt>initiative</dt>
|
||||||
<dd><p>Either "reach" or "agora</p></dd>
|
<dd><p>Either "reach" or "agora</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>palette</dt>
|
<dt>palette</dt>
|
||||||
<dd><p>Palette name from `pal_reach()` or `pal_agora()`</p></dd>
|
<dd><p>Palette name from `pal_reach()` or `pal_agora()`</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>discrete</dt>
|
<dt>discrete</dt>
|
||||||
<dd><p>Boolean indicating whether color aesthetic is discrete or not</p></dd>
|
<dd><p>Boolean indicating whether color aesthetic is discrete or not</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>reverse</dt>
|
<dt>reverse</dt>
|
||||||
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>...</dt>
|
<dt>...</dt>
|
||||||
<dd><p>Additional arguments passed to discrete_scale() or
|
<dd><p>Additional arguments passed to discrete_scale() or
|
||||||
scale_fill_gradient(), used respectively when discrete is TRUE or FALSE</p></dd>
|
scale_fill_gradient(), used respectively when discrete is TRUE or FALSE</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 fill scale for ggplot</p>
|
|
||||||
|
|
||||||
|
<p>A fill scale for ggplot</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -88,7 +99,7 @@ scale_fill_gradient(), used respectively when discrete is TRUE or FALSE</p></dd>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,19 +51,24 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">subvec_not_in</span><span class="op">(</span><span class="va">vector</span>, <span class="va">set</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">subvec_not_in</span><span class="op">(</span><span class="va">vector</span>, <span class="va">set</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>vector</dt>
|
<dl><dt>vector</dt>
|
||||||
<dd><p>A vector to subset</p></dd>
|
<dd><p>A vector to subset</p></dd>
|
||||||
|
|
||||||
|
|
||||||
<dt>set</dt>
|
<dt>set</dt>
|
||||||
<dd><p>A set-vector</p></dd>
|
<dd><p>A set-vector</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 subset of vector not in set</p>
|
|
||||||
|
|
||||||
|
<p>A subset of vector not in set</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -75,7 +80,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,17 +51,20 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">theme_reach</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">theme_reach</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>family</dt>
|
<dl><dt>family</dt>
|
||||||
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
<dd><p>The font family. Default to "Leelawadee"</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>The base REACH theme</p>
|
|
||||||
|
|
||||||
|
<p>The base REACH theme</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -73,7 +76,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,17 +51,20 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">theme_reach_borders</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">theme_reach_borders</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>family</dt>
|
<dl><dt>family</dt>
|
||||||
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
<dd><p>The font family. Default to "Leelawadee"</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 theme to be added to the "+" ggplot grammar</p>
|
|
||||||
|
|
||||||
|
<p>A theme to be added to the "+" ggplot grammar</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -73,7 +76,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,17 +51,20 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">theme_reach_flip_hist</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">theme_reach_flip_hist</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>family</dt>
|
<dl><dt>family</dt>
|
||||||
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
<dd><p>The font family. Default to "Leelawadee"</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 theme to be added to the "+" ggplot grammar</p>
|
|
||||||
|
|
||||||
|
<p>A theme to be added to the "+" ggplot grammar</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -73,7 +76,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">visualizeR</a>
|
<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="">0.1.3.9000</small>
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.1.4.9000</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">
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
|
@ -51,17 +51,20 @@
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
<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 class="fu">theme_reach_hist</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></code></pre></div>
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">theme_reach_hist</span><span class="op">(</span>family <span class="op">=</span> <span class="st">"Leelawadee"</span><span class="op">)</span></span></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section level2">
|
<div class="section level2">
|
||||||
<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>family</dt>
|
<dl><dt>family</dt>
|
||||||
<dd><p>The font family. Default to "Leelawadee"</p></dd>
|
<dd><p>The font family. Default to "Leelawadee"</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 theme to be added to the "+" ggplot grammar</p>
|
|
||||||
|
|
||||||
|
<p>A theme to be added to the "+" ggplot grammar</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||||
|
|
@ -73,7 +76,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
<div class="pkgdown-footer-right">
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.3.</p>
|
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.5.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</footer></div>
|
</footer></div>
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -15,6 +15,7 @@ hbar(
|
||||||
group_title = NULL,
|
group_title = NULL,
|
||||||
font_family = "Leelawadee",
|
font_family = "Leelawadee",
|
||||||
stack = FALSE,
|
stack = FALSE,
|
||||||
|
reverse = FALSE,
|
||||||
...
|
...
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -39,6 +40,8 @@ hbar(
|
||||||
|
|
||||||
\item{stack}{Should the chart be stacked? Default to "FALSE" (dodge)}
|
\item{stack}{Should the chart be stacked? Default to "FALSE" (dodge)}
|
||||||
|
|
||||||
|
\item{reverse}{Boolean indicating whether the color palette should be reversed}
|
||||||
|
|
||||||
\item{...}{Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"}
|
\item{...}{Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"}
|
||||||
}
|
}
|
||||||
\value{
|
\value{
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ hbar_percent(
|
||||||
group_title = NULL,
|
group_title = NULL,
|
||||||
font_family = "Leelawadee",
|
font_family = "Leelawadee",
|
||||||
stack = FALSE,
|
stack = FALSE,
|
||||||
|
reverse = FALSE,
|
||||||
...
|
...
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -39,6 +40,8 @@ hbar_percent(
|
||||||
|
|
||||||
\item{stack}{Should the chart be stacked? Default to "FALSE" (dodge)}
|
\item{stack}{Should the chart be stacked? Default to "FALSE" (dodge)}
|
||||||
|
|
||||||
|
\item{reverse}{Boolean indicating whether the color palette should be reversed}
|
||||||
|
|
||||||
\item{...}{Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"}
|
\item{...}{Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"}
|
||||||
}
|
}
|
||||||
\value{
|
\value{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue