Compare commits

...
Sign in to create a new pull request.

7 commits

96 changed files with 25308 additions and 0 deletions

1
.nojekyll Normal file
View file

@ -0,0 +1 @@

80
404.html Normal file
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>Page not found (404) • visualizeR</title>
<!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="https://gnoblet.github.io/visualizeR/favicon-96x96.png">
<link rel="icon" type="”image/svg+xml”" href="https://gnoblet.github.io/visualizeR/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="https://gnoblet.github.io/visualizeR/apple-touch-icon.png">
<link rel="icon" sizes="any" href="https://gnoblet.github.io/visualizeR/favicon.ico">
<link rel="manifest" href="https://gnoblet.github.io/visualizeR/site.webmanifest">
<script src="https://gnoblet.github.io/visualizeR/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="https://gnoblet.github.io/visualizeR/deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet">
<script src="https://gnoblet.github.io/visualizeR/deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="https://gnoblet.github.io/visualizeR/deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet">
<link href="https://gnoblet.github.io/visualizeR/deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet">
<script src="https://gnoblet.github.io/visualizeR/deps/headroom-0.11.0/headroom.min.js"></script><script src="https://gnoblet.github.io/visualizeR/deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="https://gnoblet.github.io/visualizeR/deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="https://gnoblet.github.io/visualizeR/deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="https://gnoblet.github.io/visualizeR/deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="https://gnoblet.github.io/visualizeR/deps/search-1.0.0/fuse.min.js"></script><script src="https://gnoblet.github.io/visualizeR/deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="https://gnoblet.github.io/visualizeR/pkgdown.js"></script><meta property="og:title" content="Page not found (404)">
<meta property="og:image" content="https://gnoblet.github.io/visualizeR/logo.png">
</head>
<body>
<a href="https://gnoblet.github.io/visualizeR/#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="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="">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="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/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-title-body">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="https://gnoblet.github.io/visualizeR/logo.png" class="logo" alt=""><h1>Page not found (404)</h1>
</div>
Content not found. Please use links in the navbar.
</main>
</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>

250
LICENSE.html Normal file
View file

@ -0,0 +1,250 @@
<!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>GNU General Public License • 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="GNU General Public License"><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="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-title-body">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="logo.png" class="logo" alt=""><h1>GNU General Public License</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/LICENSE.md" class="external-link"><code>LICENSE.md</code></a></small>
</div>
<div id="gnu-general-public-license" class="section level1">
<p><em>Version 3, 29 June 2007</em><br><em>Copyright © 2007 Free Software Foundation, Inc. &lt;<a href="http://fsf.org/" class="external-link uri">http://fsf.org/</a>&gt;</em></p>
<p>Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p>
<div class="section level2">
<h2 id="preamble">Preamble<a class="anchor" aria-label="anchor" href="#preamble"></a></h2>
<p>The GNU General Public License is a free, copyleft license for software and other kinds of works.</p>
<p>The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a programto make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.</p>
<p>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.</p>
<p>To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.</p>
<p>For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.</p>
<p>Developers that use the GNU GPL protect your rights with two steps: <strong>(1)</strong> assert copyright on the software, and <strong>(2)</strong> offer you this License giving you legal permission to copy, distribute and/or modify it.</p>
<p>For the developers and authors protection, the GPL clearly explains that there is no warranty for this free software. For both users and authors sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.</p>
<p>Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.</p>
<p>Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.</p>
<p>The precise terms and conditions for copying, distribution and modification follow.</p>
</div>
<div class="section level2">
<h2 id="terms-and-conditions">TERMS AND CONDITIONS<a class="anchor" aria-label="anchor" href="#terms-and-conditions"></a></h2>
<div class="section level3">
<h3 id="id_0-definitions">0. Definitions<a class="anchor" aria-label="anchor" href="#id_0-definitions"></a></h3>
<p>“This License” refers to version 3 of the GNU General Public License.</p>
<p>“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.</p>
<p>“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.</p>
<p>To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.</p>
<p>A “covered work” means either the unmodified Program or a work based on the Program.</p>
<p>To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.</p>
<p>To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.</p>
<p>An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that <strong>(1)</strong> displays an appropriate copyright notice, and <strong>(2)</strong> tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.</p>
</div>
<div class="section level3">
<h3 id="id_1-source-code">1. Source Code<a class="anchor" aria-label="anchor" href="#id_1-source-code"></a></h3>
<p>The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.</p>
<p>A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.</p>
<p>The “System Libraries” of an executable work include anything, other than the work as a whole, that <strong>(a)</strong> is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and <strong>(b)</strong> serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.</p>
<p>The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the works System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.</p>
<p>The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.</p>
<p>The Corresponding Source for a work in source code form is that same work.</p>
</div>
<div class="section level3">
<h3 id="id_2-basic-permissions">2. Basic Permissions<a class="anchor" aria-label="anchor" href="#id_2-basic-permissions"></a></h3>
<p>All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.</p>
<p>You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.</p>
<p>Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.</p>
</div>
<div class="section level3">
<h3 id="id_3-protecting-users-legal-rights-from-anti-circumvention-law">3. Protecting Users Legal Rights From Anti-Circumvention Law<a class="anchor" aria-label="anchor" href="#id_3-protecting-users-legal-rights-from-anti-circumvention-law"></a></h3>
<p>No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.</p>
<p>When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the works users, your or third parties legal rights to forbid circumvention of technological measures.</p>
</div>
<div class="section level3">
<h3 id="id_4-conveying-verbatim-copies">4. Conveying Verbatim Copies<a class="anchor" aria-label="anchor" href="#id_4-conveying-verbatim-copies"></a></h3>
<p>You may convey verbatim copies of the Programs source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.</p>
<p>You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.</p>
</div>
<div class="section level3">
<h3 id="id_5-conveying-modified-source-versions">5. Conveying Modified Source Versions<a class="anchor" aria-label="anchor" href="#id_5-conveying-modified-source-versions"></a></h3>
<p>You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:</p>
<ul><li>
<strong>a)</strong> The work must carry prominent notices stating that you modified it, and giving a relevant date.</li>
<li>
<strong>b)</strong> The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.</li>
<li>
<strong>c)</strong> You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.</li>
<li>
<strong>d)</strong> If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.</li>
</ul><p>A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilations users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.</p>
</div>
<div class="section level3">
<h3 id="id_6-conveying-non-source-forms">6. Conveying Non-Source Forms<a class="anchor" aria-label="anchor" href="#id_6-conveying-non-source-forms"></a></h3>
<p>You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:</p>
<ul><li>
<strong>a)</strong> Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.</li>
<li>
<strong>b)</strong> Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either <strong>(1)</strong> a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or <strong>(2)</strong> access to copy the Corresponding Source from a network server at no charge.</li>
<li>
<strong>c)</strong> Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.</li>
<li>
<strong>d)</strong> Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.</li>
<li>
<strong>e)</strong> Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.</li>
</ul><p>A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.</p>
<p>A “User Product” is either <strong>(1)</strong> a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or <strong>(2)</strong> anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.</p>
<p>“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.</p>
<p>If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).</p>
<p>The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.</p>
<p>Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.</p>
</div>
<div class="section level3">
<h3 id="id_7-additional-terms">7. Additional Terms<a class="anchor" aria-label="anchor" href="#id_7-additional-terms"></a></h3>
<p>“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.</p>
<p>When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.</p>
<p>Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:</p>
<ul><li>
<strong>a)</strong> Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or</li>
<li>
<strong>b)</strong> Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or</li>
<li>
<strong>c)</strong> Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or</li>
<li>
<strong>d)</strong> Limiting the use for publicity purposes of names of licensors or authors of the material; or</li>
<li>
<strong>e)</strong> Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or</li>
<li>
<strong>f)</strong> Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.</li>
</ul><p>All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.</p>
<p>If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.</p>
<p>Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.</p>
</div>
<div class="section level3">
<h3 id="id_8-termination">8. Termination<a class="anchor" aria-label="anchor" href="#id_8-termination"></a></h3>
<p>You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).</p>
<p>However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated <strong>(a)</strong> provisionally, unless and until the copyright holder explicitly and finally terminates your license, and <strong>(b)</strong> permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.</p>
<p>Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.</p>
<p>Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.</p>
</div>
<div class="section level3">
<h3 id="id_9-acceptance-not-required-for-having-copies">9. Acceptance Not Required for Having Copies<a class="anchor" aria-label="anchor" href="#id_9-acceptance-not-required-for-having-copies"></a></h3>
<p>You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.</p>
</div>
<div class="section level3">
<h3 id="id_10-automatic-licensing-of-downstream-recipients">10. Automatic Licensing of Downstream Recipients<a class="anchor" aria-label="anchor" href="#id_10-automatic-licensing-of-downstream-recipients"></a></h3>
<p>Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.</p>
<p>An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the partys predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.</p>
<p>You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.</p>
</div>
<div class="section level3">
<h3 id="id_11-patents">11. Patents<a class="anchor" aria-label="anchor" href="#id_11-patents"></a></h3>
<p>A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributors “contributor version”.</p>
<p>A contributors “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.</p>
<p>Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributors essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.</p>
<p>In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.</p>
<p>If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either <strong>(1)</strong> cause the Corresponding Source to be so available, or <strong>(2)</strong> arrange to deprive yourself of the benefit of the patent license for this particular work, or <strong>(3)</strong> arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipients use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.</p>
<p>If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.</p>
<p>A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license <strong>(a)</strong> in connection with copies of the covered work conveyed by you (or copies made from those copies), or <strong>(b)</strong> primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.</p>
<p>Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.</p>
</div>
<div class="section level3">
<h3 id="id_12-no-surrender-of-others-freedom">12. No Surrender of Others Freedom<a class="anchor" aria-label="anchor" href="#id_12-no-surrender-of-others-freedom"></a></h3>
<p>If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.</p>
</div>
<div class="section level3">
<h3 id="id_13-use-with-the-gnu-affero-general-public-license">13. Use with the GNU Affero General Public License<a class="anchor" aria-label="anchor" href="#id_13-use-with-the-gnu-affero-general-public-license"></a></h3>
<p>Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.</p>
</div>
<div class="section level3">
<h3 id="id_14-revised-versions-of-this-license">14. Revised Versions of this License<a class="anchor" aria-label="anchor" href="#id_14-revised-versions-of-this-license"></a></h3>
<p>The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
<p>Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.</p>
<p>If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxys public statement of acceptance of a version permanently authorizes you to choose that version for the Program.</p>
<p>Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.</p>
</div>
<div class="section level3">
<h3 id="id_15-disclaimer-of-warranty">15. Disclaimer of Warranty<a class="anchor" aria-label="anchor" href="#id_15-disclaimer-of-warranty"></a></h3>
<p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
</div>
<div class="section level3">
<h3 id="id_16-limitation-of-liability">16. Limitation of Liability<a class="anchor" aria-label="anchor" href="#id_16-limitation-of-liability"></a></h3>
<p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
</div>
<div class="section level3">
<h3 id="id_17-interpretation-of-sections-15-and-16">17. Interpretation of Sections 15 and 16<a class="anchor" aria-label="anchor" href="#id_17-interpretation-of-sections-15-and-16"></a></h3>
<p>If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.</p>
<p><em>END OF TERMS AND CONDITIONS</em></p>
</div>
</div>
<div class="section level2">
<h2 id="how-to-apply-these-terms-to-your-new-programs">How to Apply These Terms to Your New Programs<a class="anchor" aria-label="anchor" href="#how-to-apply-these-terms-to-your-new-programs"></a></h2>
<p>If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.</p>
<p>To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode R"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="sc">&lt;</span>one line to give the program<span class="st">'s name and a brief idea of what it does.&gt;</span></span>
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a><span class="st">Copyright (C) &lt;year&gt; &lt;name of author&gt;</span></span>
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a></span>
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a><span class="st">This program is free software: you can redistribute it and/or modify</span></span>
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a><span class="st">it under the terms of the GNU General Public License as published by</span></span>
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a><span class="st">the Free Software Foundation, either version 3 of the License, or</span></span>
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a><span class="st">(at your option) any later version.</span></span>
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a></span>
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a><span class="st">This program is distributed in the hope that it will be useful,</span></span>
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a><span class="st">but WITHOUT ANY WARRANTY; without even the implied warranty of</span></span>
<span id="cb1-11"><a href="#cb1-11" tabindex="-1"></a><span class="st">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></span>
<span id="cb1-12"><a href="#cb1-12" tabindex="-1"></a><span class="st">GNU General Public License for more details.</span></span>
<span id="cb1-13"><a href="#cb1-13" tabindex="-1"></a></span>
<span id="cb1-14"><a href="#cb1-14" tabindex="-1"></a><span class="st">You should have received a copy of the GNU General Public License</span></span>
<span id="cb1-15"><a href="#cb1-15" tabindex="-1"></a><span class="st">along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></span></code></pre></div>
<p>Also add information on how to contact you by electronic and paper mail.</p>
<p>If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode R"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" tabindex="-1"></a><span class="sc">&lt;</span>program<span class="sc">&gt;</span> <span class="fu">Copyright</span> (C) <span class="sc">&lt;</span>year<span class="sc">&gt;</span> <span class="er">&lt;</span>name of author<span class="sc">&gt;</span></span>
<span id="cb2-2"><a href="#cb2-2" tabindex="-1"></a>This program comes with ABSOLUTELY NO WARRANTY; <span class="cf">for</span> details type <span class="st">'show w'</span>.</span>
<span id="cb2-3"><a href="#cb2-3" tabindex="-1"></a>This is free software, and you are welcome to redistribute it</span>
<span id="cb2-4"><a href="#cb2-4" tabindex="-1"></a>under certain conditions; type <span class="st">'show c'</span> <span class="cf">for</span> details.</span></code></pre></div>
<p>The hypothetical commands <code>show w</code> and <code>show c</code> should show the appropriate parts of the General Public License. Of course, your programs commands might be different; for a GUI interface, you would use an “about box”.</p>
<p>You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see &lt;<a href="http://www.gnu.org/licenses/" class="external-link uri">http://www.gnu.org/licenses/</a>&gt;.</p>
<p>The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read &lt;<a href="http://www.gnu.org/philosophy/why-not-lgpl.html" class="external-link uri">http://www.gnu.org/philosophy/why-not-lgpl.html</a>&gt;.</p>
</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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
apple-touch-icon-60x60.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
apple-touch-icon-76x76.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

141
articles/bar_charts.html Normal file
View file

@ -0,0 +1,141 @@
<!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>Bar charts • 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="Bar charts">
</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="nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="active 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>
</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-article">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Bar charts</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/vignettes/bar_charts.Rmd" class="external-link"><code>vignettes/bar_charts.Rmd</code></a></small>
<div class="d-none name"><code>bar_charts.Rmd</code></div>
</div>
<p>Lets start by importing some data and running some data
wrangling:</p>
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
<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://gesistsa.github.io/rio/" class="external-link">rio</a></span><span class="op">)</span></span>
<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://r-datatable.com" class="external-link">data.table</a></span><span class="op">)</span></span>
<span><span class="va">dat</span> <span class="op">&lt;-</span> <span class="fu"><a href="http://gesistsa.github.io/rio/reference/import.html" class="external-link">import</a></span><span class="op">(</span><span class="st">"https://raw.githubusercontent.com/holtzy/data_to_viz/master/Example_dataset/11_SevCatOneNumNestedOneObsPerGroup.csv"</span>, data.table <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span>
<span><span class="fu"><a href="https://rdatatable.gitlab.io/data.table/reference/setDT.html" class="external-link">setDT</a></span><span class="op">(</span><span class="va">dat</span><span class="op">)</span></span>
<span></span>
<span><span class="co"># in all character columns, tranform empty string to NA</span></span>
<span><span class="va">vars_chr</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/colnames.html" class="external-link">colnames</a></span><span class="op">(</span><span class="va">dat</span><span class="op">)</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/lapply.html" class="external-link">sapply</a></span><span class="op">(</span><span class="va">dat</span>, <span class="va">is.character</span><span class="op">)</span><span class="op">]</span></span>
<span><span class="va">dat</span><span class="op">[</span>, <span class="op">(</span><span class="va">vars_chr</span><span class="op">)</span> <span class="op">:=</span> <span class="fu"><a href="https://rdrr.io/r/base/lapply.html" class="external-link">lapply</a></span><span class="op">(</span><span class="va">.SD</span>, <span class="kw">function</span><span class="op">(</span><span class="va">x</span><span class="op">)</span> <span class="fu"><a href="https://rdatatable.gitlab.io/data.table/reference/fifelse.html" class="external-link">fifelse</a></span><span class="op">(</span><span class="va">x</span> <span class="op">==</span> <span class="st">""</span>, <span class="cn">NA_character_</span>, <span class="va">x</span><span class="op">)</span><span class="op">)</span>, .SDcols <span class="op">=</span> <span class="va">vars_chr</span><span class="op">]</span></span>
<span></span>
<span><span class="co"># in value, if -1 replace with NA</span></span>
<span><span class="va">dat</span><span class="op">[</span>, <span class="va">value</span> <span class="op">:=</span> <span class="fu"><a href="https://rdatatable.gitlab.io/data.table/reference/fifelse.html" class="external-link">fifelse</a></span><span class="op">(</span><span class="va">value</span> <span class="op">==</span> <span class="op">-</span><span class="fl">1</span>, <span class="cn">NA_real_</span>, <span class="va">value</span><span class="op">)</span><span class="op">]</span></span>
<span></span>
<span><span class="co"># remove lines where value is NA (in place)</span></span>
<span><span class="va">dat</span> <span class="op">&lt;-</span> <span class="va">dat</span><span class="op">[</span><span class="op">!</span><span class="fu"><a href="https://rdrr.io/r/base/NA.html" class="external-link">is.na</a></span><span class="op">(</span><span class="va">value</span><span class="op">)</span>, <span class="op">]</span></span>
<span></span>
<span><span class="co"># kepp only top 20 values and divide data to get million units</span></span>
<span><span class="va">df</span> <span class="op">&lt;-</span> <span class="va">dat</span><span class="op">[</span></span>
<span> <span class="op">!</span><span class="fu"><a href="https://rdrr.io/r/base/NA.html" class="external-link">is.na</a></span><span class="op">(</span><span class="va">value</span><span class="op">)</span>, <span class="op">]</span><span class="op">[</span></span>
<span> <span class="fu"><a href="https://rdrr.io/r/base/order.html" class="external-link">order</a></span><span class="op">(</span><span class="va">value</span>, decreasing <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span>, <span class="op">]</span><span class="op">[</span></span>
<span> <span class="fl">1</span><span class="op">:</span><span class="fl">20</span>, <span class="op">]</span><span class="op">[</span></span>
<span> , <span class="va">value</span> <span class="op">:=</span> <span class="va">value</span><span class="op">/</span><span class="fl">1000000</span>, <span class="op">]</span><span class="op">[</span></span>
<span> , <span class="va">key</span> <span class="op">:=</span> <span class="fu"><a href="https://rdrr.io/r/base/ifelse.html" class="external-link">ifelse</a></span><span class="op">(</span><span class="va">key</span> <span class="op">==</span> <span class="st">"Democratic Republic of the Congo"</span>, <span class="st">"DRC"</span>, <span class="va">key</span><span class="op">)</span><span class="op">]</span></span></code></pre></div>
<p>Now, lets see the defaults for a horizontal bar diagram without any
grouping and ordering values from highest to smallest:</p>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<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><span class="co">#&gt; </span></span>
<span><span class="co">#&gt; Attaching package: 'visualizeR'</span></span>
<span><span class="co">#&gt; The following object is masked from 'package:data.table':</span></span>
<span><span class="co">#&gt; </span></span>
<span><span class="co">#&gt; %notin%</span></span>
<span><span class="co">#&gt; The following object is masked from 'package:grDevices':</span></span>
<span><span class="co">#&gt; </span></span>
<span><span class="co">#&gt; palette</span></span>
<span></span>
<span><span class="fu"><a href="../reference/bar.html">hbar</a></span><span class="op">(</span></span>
<span> <span class="va">df</span>,</span>
<span> x <span class="op">=</span> <span class="st">"key"</span>,</span>
<span> y <span class="op">=</span> <span class="st">"value"</span>,</span>
<span> facet <span class="op">=</span> <span class="st">"region"</span>,</span>
<span> order <span class="op">=</span> <span class="st">"y"</span>,</span>
<span> title <span class="op">=</span> <span class="st">"Top 20 countries by population (in Million)"</span></span>
<span><span class="op">)</span></span></code></pre></div>
<p><img src="bar_charts_files/figure-html/hbar-1.png" width="700"></p>
<p>Moving on to a vertical bar chart, with country facets and groups</p>
</main>
</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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

62
articles/index.html Normal file
View file

@ -0,0 +1,62 @@
<!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>Articles • 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="Articles"><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="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>
</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-article-index">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Articles</h1>
</div>
<div class="section ">
<h3>All vignettes</h3>
<div class="section-desc"></div>
<dl><dt><a href="bar_charts.html">Bar charts</a></dt>
<dd>
</dd></dl></div>
</main></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>

78
authors.html Normal file
View file

@ -0,0 +1,78 @@
<!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>Authors and Citation • 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="Authors and Citation"><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="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-citation-authors">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="logo.png" class="logo" alt=""><h1>Authors and Citation</h1>
</div>
<div class="section level2">
<h2>Authors</h2>
<ul class="list-unstyled"><li>
<p><strong>Noblet Guillaume</strong>. Author, maintainer.
</p>
</li>
</ul></div>
<div class="section level2">
<h2 id="citation">Citation</h2>
<p><small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/DESCRIPTION" class="external-link"><code>DESCRIPTION</code></a></small></p>
<p>Guillaume N (2025).
<em>visualizeR: What a color! What a viz!</em>.
R package version 1.0, <a href="https://github.com/gnoblet/visualizeR" class="external-link">https://github.com/gnoblet/visualizeR</a>.
</p>
<pre>@Manual{,
title = {visualizeR: What a color! What a viz!},
author = {Noblet Guillaume},
year = {2025},
note = {R package version 1.0},
url = {https://github.com/gnoblet/visualizeR},
}</pre>
</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>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,5 @@
/*!
* Bootstrap Table of Contents v1.0.1 (http://afeld.github.io/bootstrap-toc/)
* Copyright 2015 Aidan Feldman
* Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */
!function(a){"use strict";window.Toc={helpers:{findOrFilter:function(e,t){var n=e.find(t);return e.filter(t).add(n).filter(":not([data-toc-skip])")},generateUniqueIdBase:function(e){return a(e).text().trim().replace(/\'/gi,"").replace(/[& +$,:;=?@"#{}|^~[`%!'<>\]\.\/\(\)\*\\\n\t\b\v]/g,"-").replace(/-{2,}/g,"-").substring(0,64).replace(/^-+|-+$/gm,"").toLowerCase()||e.tagName.toLowerCase()},generateUniqueId:function(e){for(var t=this.generateUniqueIdBase(e),n=0;;n++){var r=t;if(0<n&&(r+="-"+n),!document.getElementById(r))return r}},generateAnchor:function(e){if(e.id)return e.id;var t=this.generateUniqueId(e);return e.id=t},createNavList:function(){return a('<ul class="nav navbar-nav"></ul>')},createChildNavList:function(e){var t=this.createNavList();return e.append(t),t},generateNavEl:function(e,t){var n=a('<a class="nav-link"></a>');n.attr("href","#"+e),n.text(t);var r=a("<li></li>");return r.append(n),r},generateNavItem:function(e){var t=this.generateAnchor(e),n=a(e),r=n.data("toc-text")||n.text();return this.generateNavEl(t,r)},getTopLevel:function(e){for(var t=1;t<=6;t++){if(1<this.findOrFilter(e,"h"+t).length)return t}return 1},getHeadings:function(e,t){var n="h"+t,r="h"+(t+1);return this.findOrFilter(e,n+","+r)},getNavLevel:function(e){return parseInt(e.tagName.charAt(1),10)},populateNav:function(r,a,e){var i,s=r,c=this;e.each(function(e,t){var n=c.generateNavItem(t);c.getNavLevel(t)===a?s=r:i&&s===r&&(s=c.createChildNavList(i)),s.append(n),i=n})},parseOps:function(e){var t;return(t=e.jquery?{$nav:e}:e).$scope=t.$scope||a(document.body),t}},init:function(e){(e=this.helpers.parseOps(e)).$nav.attr("data-toggle","toc");var t=this.helpers.createChildNavList(e.$nav),n=this.helpers.getTopLevel(e.$scope),r=this.helpers.getHeadings(e.$scope,n);this.helpers.populateNav(t,n,r)}},a(function(){a('nav[data-toggle="toc"]').each(function(e,t){var n=a(t);Toc.init(n)})})}(jQuery);

File diff suppressed because one or more lines are too long

13
deps/data-deps.txt vendored Normal file
View file

@ -0,0 +1,13 @@
<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>

8028
deps/font-awesome-6.5.2/css/all.css vendored Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

2194
deps/font-awesome-6.5.2/css/v4-shims.css vendored Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

7
deps/headroom-0.11.0/headroom.min.js vendored Normal file
View file

@ -0,0 +1,7 @@
/*!
* headroom.js v0.11.0 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2020 Nick Williams - http://wicky.nillia.ms/headroom.js
* License: MIT
*/
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).Headroom=n()}(this,function(){"use strict";function t(){return"undefined"!=typeof window}function d(t){return function(t){return t&&t.document&&function(t){return 9===t.nodeType}(t.document)}(t)?function(t){var n=t.document,o=n.body,s=n.documentElement;return{scrollHeight:function(){return Math.max(o.scrollHeight,s.scrollHeight,o.offsetHeight,s.offsetHeight,o.clientHeight,s.clientHeight)},height:function(){return t.innerHeight||s.clientHeight||o.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(s||o.parentNode||o).scrollTop}}}(t):function(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}(t)}function n(t,s,e){var n,o=function(){var n=!1;try{var t={get passive(){n=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){n=!1}return n}(),i=!1,r=d(t),l=r.scrollY(),a={};function c(){var t=Math.round(r.scrollY()),n=r.height(),o=r.scrollHeight();a.scrollY=t,a.lastScrollY=l,a.direction=l<t?"down":"up",a.distance=Math.abs(t-l),a.isOutOfBounds=t<0||o<t+n,a.top=t<=s.offset,a.bottom=o<=t+n,a.toleranceExceeded=a.distance>s.tolerance[a.direction],e(a),l=t,i=!1}function h(){i||(i=!0,n=requestAnimationFrame(c))}var u=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,u),c(),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",h,u)}}}function o(t,n){n=n||{},Object.assign(this,o.options,n),this.classes=Object.assign({},o.options.classes,n.classes),this.elem=t,this.tolerance=function(t){return t===Object(t)?t:{down:t,up:t}}(this.tolerance),this.initialised=!1,this.frozen=!1}return o.prototype={constructor:o,init:function(){return o.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=n(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t)},this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},o.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},o.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),o});

View file

@ -0,0 +1,7 @@
/*!
* headroom.js v0.9.4 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2017 Nick Williams - http://wicky.nillia.ms/headroom.js
* License: MIT
*/
!function(a){a&&(a.fn.headroom=function(b){return this.each(function(){var c=a(this),d=c.data("headroom"),e="object"==typeof b&&b;e=a.extend(!0,{},Headroom.options,e),d||(d=new Headroom(this,e),d.init(),c.data("headroom",d)),"string"==typeof b&&(d[b](),"destroy"===b&&c.removeData("headroom"))})},a("[data-headroom]").each(function(){var b=a(this);b.headroom(b.data())}))}(window.Zepto||window.jQuery);

10881
deps/jquery-3.6.0/jquery-3.6.0.js vendored Normal file

File diff suppressed because it is too large Load diff

2
deps/jquery-3.6.0/jquery-3.6.0.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

9
deps/search-1.0.0/fuse.min.js vendored Normal file

File diff suppressed because one or more lines are too long

7
deps/search-1.0.0/mark.min.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

421
index.html Normal file
View file

@ -0,0 +1,421 @@
<!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>What a color! What a viz! • 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="What a color! What a viz!">
<meta name="description" content="It basically provides colors as hex codes, color palettes, and some viz functions (graphs and maps).">
<meta property="og:description" content="It basically provides colors as hex codes, color palettes, and some viz functions (graphs and maps).">
<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="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-home">
<div class="row">
<main id="main" class="col-md-9"><div class="section level1">
<div class="page-header">
<img src="logo.png" class="logo" alt=""><h1 id="visualizer-">visualizeR <a class="anchor" aria-label="anchor" href="#visualizer-"></a>
</h1>
</div>
<!-- badges: start -->
<blockquote>
<p>What a color! What a viz!</p>
</blockquote>
<p><code>visualizeR</code> proposes some utils to sane colors, ready-to-go color palettes, and a few visualization functions. The package is thoroughly tested with comprehensive code coverage.</p>
<div class="section level2">
<h2 id="installation">Installation<a class="anchor" aria-label="anchor" href="#installation"></a>
</h2>
<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">
<code class="sourceCode R"><span><span class="co"># install.packages("devtools")</span></span>
<span><span class="fu">devtools</span><span class="fu">::</span><span class="fu">install_github</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 class="section level2">
<h2 id="roadmap">Roadmap<a class="anchor" aria-label="anchor" href="#roadmap"></a>
</h2>
<p>Roadmap is as follows:</p>
<ul class="task-list">
<li><label><input type="checkbox">Full revamp of core functions (colors, pattern, incl. adding test and pre-commit structures)</label></li>
<li><label><input type="checkbox" checked>Add test coverage reporting via codecov</label></li>
<li><label><input type="checkbox">Maintain &gt;80% test coverage across all functions</label></li>
<li>
<label><input type="checkbox">Add other types of plots:</label>
<ul class="task-list">
<li><label><input type="checkbox">Dumbell</label></li>
<li><label><input type="checkbox">Waffle</label></li>
<li><label><input type="checkbox">Donut</label></li>
<li><label><input type="checkbox">Alluvial</label></li>
</ul>
</li>
<li><label><input type="checkbox">Option for tag with css code + for titles/subtitles/captions</label></li>
</ul>
</div>
<div class="section level2">
<h2 id="request">Request<a class="anchor" aria-label="anchor" href="#request"></a>
</h2>
<p>Please, do not hesitate to pull request any new viz or colors or color palettes, or to email request any change (<a href="mailto:gnoblet@zaclys.net" class="email">gnoblet@zaclys.net</a>).</p>
</div>
<div class="section level2">
<h2 id="code-coverage">Code Coverage<a class="anchor" aria-label="anchor" href="#code-coverage"></a>
</h2>
<p><code>visualizeR</code> uses <a href="https://codecov.io/" class="external-link">codecov</a> for test coverage reporting. You can see the current coverage status by clicking on the codecov badge at the top of this README. We aim to maintain high test coverage to ensure code reliability and stability.</p>
</div>
<div class="section level2">
<h2 id="colors">Colors<a class="anchor" aria-label="anchor" href="#colors"></a>
</h2>
<p>Functions to access colors and palettes are <code><a href="reference/color.html">color()</a></code> or <code><a href="reference/palette.html">palette()</a></code>. Feel free to pull request new colors.</p>
<div class="sourceCode" id="cb2"><pre class="downlit sourceCode r">
<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></span>
<span><span class="co"># Get all saved colors, named</span></span>
<span><span class="fu"><a href="reference/color.html">color</a></span><span class="op">(</span>unname <span class="op">=</span> <span class="cn">F</span><span class="op">)</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">10</span><span class="op">]</span></span>
<span><span class="co">#&gt; white lighter_grey light_grey dark_grey light_blue_grey </span></span>
<span><span class="co">#&gt; "#FFFFFF" "#F5F5F5" "#E3E3E3" "#464647" "#B3C6D1" </span></span>
<span><span class="co">#&gt; grey black cat_2_yellow_1 cat_2_yellow_2 cat_2_light_1 </span></span>
<span><span class="co">#&gt; "#71716F" "#000000" "#ffc20a" "#0c7bdc" "#fefe62"</span></span>
<span></span>
<span><span class="co"># Extract a color palette as hexadecimal codes and reversed</span></span>
<span><span class="fu"><a href="reference/palette.html">palette</a></span><span class="op">(</span>palette <span class="op">=</span> <span class="st">"cat_5_main"</span>, reversed <span class="op">=</span> <span class="cn">TRUE</span>, color_ramp_palette <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] "#083d77" "#4ecdc4" "#f4c095" "#b47eb3" "#ffd5ff"</span></span>
<span></span>
<span><span class="co"># Get all color palettes names</span></span>
<span><span class="fu"><a href="reference/palette.html">palette</a></span><span class="op">(</span>show_palettes <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] "cat_2_yellow" "cat_2_light" </span></span>
<span><span class="co">#&gt; [3] "cat_2_green" "cat_2_blue" </span></span>
<span><span class="co">#&gt; [5] "cat_5_main" "cat_5_ibm" </span></span>
<span><span class="co">#&gt; [7] "cat_3_aquamarine" "cat_3_tol_high_contrast"</span></span>
<span><span class="co">#&gt; [9] "cat_8_tol_adapted" "cat_3_custom_1" </span></span>
<span><span class="co">#&gt; [11] "cat_4_custom_1" "cat_5_custom_1" </span></span>
<span><span class="co">#&gt; [13] "cat_6_custom_1" "div_5_orange_blue" </span></span>
<span><span class="co">#&gt; [15] "div_5_green_purple"</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="charts">Charts<a class="anchor" aria-label="anchor" href="#charts"></a>
</h2>
<div class="section level3">
<h3 id="example-1-bar-chart">Example 1: Bar chart<a class="anchor" aria-label="anchor" href="#example-1-bar-chart"></a>
</h3>
<div class="sourceCode" id="cb3"><pre class="downlit sourceCode r">
<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://allisonhorst.github.io/palmerpenguins/" class="external-link">palmerpenguins</a></span><span class="op">)</span></span>
<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://dplyr.tidyverse.org" class="external-link">dplyr</a></span><span class="op">)</span></span>
<span></span>
<span><span class="va">df</span> <span class="op">&lt;-</span> <span class="va">penguins</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by</a></span><span class="op">(</span><span class="va">island</span>, <span class="va">species</span><span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/summarise.html" class="external-link">summarize</a></span><span class="op">(</span></span>
<span> mean_bl <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/mean.html" class="external-link">mean</a></span><span class="op">(</span><span class="va">bill_length_mm</span>, na.rm <span class="op">=</span> <span class="cn">T</span><span class="op">)</span>,</span>
<span> mean_fl <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/mean.html" class="external-link">mean</a></span><span class="op">(</span><span class="va">flipper_length_mm</span>, na.rm <span class="op">=</span> <span class="cn">T</span><span class="op">)</span></span>
<span> <span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">ungroup</a></span><span class="op">(</span><span class="op">)</span></span>
<span></span>
<span><span class="va">df_island</span> <span class="op">&lt;-</span> <span class="va">penguins</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by</a></span><span class="op">(</span><span class="va">island</span><span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/summarise.html" class="external-link">summarize</a></span><span class="op">(</span></span>
<span> mean_bl <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/mean.html" class="external-link">mean</a></span><span class="op">(</span><span class="va">bill_length_mm</span>, na.rm <span class="op">=</span> <span class="cn">T</span><span class="op">)</span>,</span>
<span> mean_fl <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/mean.html" class="external-link">mean</a></span><span class="op">(</span><span class="va">flipper_length_mm</span>, na.rm <span class="op">=</span> <span class="cn">T</span><span class="op">)</span></span>
<span> <span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">ungroup</a></span><span class="op">(</span><span class="op">)</span></span>
<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>
<p><img src="reference/figures/README-example-bar-chart-1.png" width="65%"></p>
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r">
<code class="sourceCode R"><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>
<p><img src="reference/figures/README-example-bar-chart-2.png" width="65%"></p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><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>
<p><img src="reference/figures/README-example-bar-chart-3.png" width="65%"></p>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><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>
<p><img src="reference/figures/README-example-bar-chart-4.png" width="65%"></p>
</div>
<div class="section level3">
<h3 id="example-2-scatterplot">Example 2: Scatterplot<a class="anchor" aria-label="anchor" href="#example-2-scatterplot"></a>
</h3>
<div class="sourceCode" id="cb7"><pre class="downlit sourceCode r">
<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>
<p><img src="reference/figures/README-example-point-chart-1.png" width="65%"></p>
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r">
<code class="sourceCode R"><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>
<p><img src="reference/figures/README-example-point-chart-2.png" width="65%"></p>
<div class="sourceCode" id="cb9"><pre class="downlit sourceCode r">
<code class="sourceCode R"><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>
<p><img src="reference/figures/README-example-point-chart-3.png" width="65%"></p>
</div>
<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>
<p>Remember to ensure that your data are in the long format and you only have two groups on the x-axis; for instance, IDP and returnee and no NA values.</p>
<div class="sourceCode" id="cb10"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># Prepare long data</span></span>
<span><span class="va">df</span> <span class="op">&lt;-</span> <span class="fu">tibble</span><span class="fu">::</span><span class="fu"><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a></span><span class="op">(</span></span>
<span> admin1 <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><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">8</span><span class="op">]</span>, <span class="fl">2</span><span class="op">)</span>,</span>
<span> setting <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="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><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="st">"Rural"</span>, <span class="st">"Urban"</span><span class="op">)</span>, <span class="fl">4</span><span class="op">)</span>, <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><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="st">"Urban"</span>, <span class="st">"Rural"</span><span class="op">)</span>, <span class="fl">4</span><span class="op">)</span><span class="op">)</span>,</span>
<span> stat <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">16</span>, mean <span class="op">=</span> <span class="fl">50</span>, sd <span class="op">=</span> <span class="fl">18</span><span class="op">)</span></span>
<span><span class="op">)</span> <span class="op">|&gt;</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>
<span></span>
<span><span class="co"># dumbbell(</span></span>
<span><span class="co"># df,</span></span>
<span><span class="co"># 'stat',</span></span>
<span><span class="co"># 'setting',</span></span>
<span><span class="co"># 'admin1',</span></span>
<span><span class="co"># title = '% of HHs that reported open defecation as sanitation facility',</span></span>
<span><span class="co"># group_y_title = 'Admin 1',</span></span>
<span><span class="co"># group_x_title = 'Setting'</span></span>
<span><span class="co"># )</span></span></code></pre></div>
</div>
<div class="section level3">
<h3 id="example-4-donut-chart">Example 4: donut chart<a class="anchor" aria-label="anchor" href="#example-4-donut-chart"></a>
</h3>
<div class="sourceCode" id="cb11"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># Some summarized data: % of HHs by displacement status</span></span>
<span><span class="va">df</span> <span class="op">&lt;-</span> <span class="fu">tibble</span><span class="fu">::</span><span class="fu"><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a></span><span class="op">(</span></span>
<span> status <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="st">"Displaced"</span>, <span class="st">"Non displaced"</span>, <span class="st">"Returnee"</span>, <span class="st">"Don't know/Prefer not to say"</span><span class="op">)</span>,</span>
<span> percentage <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">18</span>, <span class="fl">65</span>, <span class="fl">12</span>, <span class="fl">3</span><span class="op">)</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="co"># Donut</span></span>
<span><span class="co"># donut(df,</span></span>
<span><span class="co"># status,</span></span>
<span><span class="co"># percentage,</span></span>
<span><span class="co"># hole_size = 3,</span></span>
<span><span class="co"># add_text_suffix = '%',</span></span>
<span><span class="co"># add_text_color = color('dark_grey'),</span></span>
<span><span class="co"># add_text_treshold_display = 5,</span></span>
<span><span class="co"># x_title = 'Displacement status',</span></span>
<span><span class="co"># title = '% of HHs by displacement status'</span></span>
<span><span class="co"># )</span></span></code></pre></div>
</div>
<div class="section level3">
<h3 id="example-5-waffle-chart">Example 5: Waffle chart<a class="anchor" aria-label="anchor" href="#example-5-waffle-chart"></a>
</h3>
<div class="sourceCode" id="cb12"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co">#</span></span>
<span><span class="co"># waffle(df, status, percentage, x_title = 'A caption', title = 'A title', subtitle = 'A subtitle')</span></span></code></pre></div>
</div>
<div class="section level3">
<h3 id="example-6-alluvial-chart">Example 6: Alluvial chart<a class="anchor" aria-label="anchor" href="#example-6-alluvial-chart"></a>
</h3>
<div class="sourceCode" id="cb13"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># Some summarized data: % of HHs by self-reported status of displacement in 2021 and in 2022</span></span>
<span><span class="va">df</span> <span class="op">&lt;-</span> <span class="fu">tibble</span><span class="fu">::</span><span class="fu"><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a></span><span class="op">(</span></span>
<span> status_from <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>
<span> <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><span class="op">(</span><span class="st">"Displaced"</span>, <span class="fl">4</span><span class="op">)</span>,</span>
<span> <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><span class="op">(</span><span class="st">"Non displaced"</span>, <span class="fl">4</span><span class="op">)</span>,</span>
<span> <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><span class="op">(</span><span class="st">"Returnee"</span>, <span class="fl">4</span><span class="op">)</span>,</span>
<span> <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><span class="op">(</span><span class="st">"Dnk/Pnts"</span>, <span class="fl">4</span><span class="op">)</span></span>
<span> <span class="op">)</span>,</span>
<span> status_to <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="st">"Displaced"</span>, <span class="st">"Non displaced"</span>, <span class="st">"Returnee"</span>, <span class="st">"Dnk/Pnts"</span>, <span class="st">"Displaced"</span>, <span class="st">"Non displaced"</span>, <span class="st">"Returnee"</span>, <span class="st">"Dnk/Pnts"</span>, <span class="st">"Displaced"</span>, <span class="st">"Non displaced"</span>, <span class="st">"Returnee"</span>, <span class="st">"Dnk/Pnts"</span>, <span class="st">"Displaced"</span>, <span class="st">"Non displaced"</span>, <span class="st">"Returnee"</span>, <span class="st">"Dnk/Pnts"</span><span class="op">)</span>,</span>
<span> percentage <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">20</span>, <span class="fl">8</span>, <span class="fl">18</span>, <span class="fl">1</span>, <span class="fl">12</span>, <span class="fl">21</span>, <span class="fl">0</span>, <span class="fl">2</span>, <span class="fl">0</span>, <span class="fl">3</span>, <span class="fl">12</span>, <span class="fl">1</span>, <span class="fl">0</span>, <span class="fl">0</span>, <span class="fl">1</span>, <span class="fl">1</span><span class="op">)</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="co"># Alluvial, here the group is the status for 2021</span></span>
<span></span>
<span><span class="co"># alluvial(df,</span></span>
<span><span class="co"># status_from,</span></span>
<span><span class="co"># status_to,</span></span>
<span><span class="co"># percentage,</span></span>
<span><span class="co"># status_from,</span></span>
<span><span class="co"># from_levels = c("Displaced", "Non displaced", "Returnee", "Dnk/Pnts"),</span></span>
<span><span class="co"># alpha = 0.8,</span></span>
<span><span class="co"># group_title = "Status for 2021",</span></span>
<span><span class="co"># title = "% of HHs by self-reported status from 2021 to 2022"</span></span>
<span><span class="co"># )</span></span></code></pre></div>
</div>
<div class="section level3">
<h3 id="example-7-lollipop-chart">Example 7: Lollipop chart<a class="anchor" aria-label="anchor" href="#example-7-lollipop-chart"></a>
</h3>
<div class="sourceCode" id="cb14"><pre class="downlit sourceCode r">
<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://tidyr.tidyverse.org" class="external-link">tidyr</a></span><span class="op">)</span></span>
<span><span class="co"># Prepare long data</span></span>
<span><span class="va">df</span> <span class="op">&lt;-</span> <span class="fu">tibble</span><span class="fu">::</span><span class="fu"><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a></span><span class="op">(</span></span>
<span> admin1 <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/lapply.html" class="external-link">replicate</a></span><span class="op">(</span><span class="fl">15</span>, <span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="va">letters</span>, <span class="fl">8</span><span class="op">)</span><span class="op">)</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://rdrr.io/r/base/t.html" class="external-link">t</a></span><span class="op">(</span><span class="op">)</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://rdrr.io/r/base/as.data.frame.html" class="external-link">as.data.frame</a></span><span class="op">(</span><span class="op">)</span> <span class="op">|&gt;</span> <span class="fu"><a href="https://tidyr.tidyverse.org/reference/unite.html" class="external-link">unite</a></span><span class="op">(</span><span class="st">"admin1"</span>, sep <span class="op">=</span> <span class="st">""</span><span class="op">)</span> <span class="op">|&gt;</span> <span class="fu">dplyr</span><span class="fu">::</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/pull.html" class="external-link">pull</a></span><span class="op">(</span><span class="va">admin1</span><span class="op">)</span>,</span>
<span> stat <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">15</span>, mean <span class="op">=</span> <span class="fl">50</span>, sd <span class="op">=</span> <span class="fl">15</span><span class="op">)</span></span>
<span><span class="op">)</span> <span class="op">|&gt;</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 class="co"># Simple vertical lollipop chart</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> x <span class="op">=</span> <span class="st">"admin1"</span>,</span>
<span> y <span class="op">=</span> <span class="st">"stat"</span>,</span>
<span> flip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> dot_size <span class="op">=</span> <span class="fl">3</span>,</span>
<span> y_title <span class="op">=</span> <span class="st">"% of HHs"</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><span class="op">)</span></span></code></pre></div>
<p><img src="reference/figures/README-example-lollipop-chart-1.png" width="65%"></p>
<div class="sourceCode" id="cb15"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span>
<span><span class="co"># Horizontal lollipop chart with custom colors</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> x <span class="op">=</span> <span class="st">"admin1"</span>,</span>
<span> y <span class="op">=</span> <span class="st">"stat"</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">1</span>,</span>
<span> add_color <span class="op">=</span> <span class="fu"><a href="reference/color.html">color</a></span><span class="op">(</span><span class="st">"cat_5_main_2"</span><span class="op">)</span>,</span>
<span> line_color <span class="op">=</span> <span class="fu"><a href="reference/color.html">color</a></span><span class="op">(</span><span class="st">"cat_5_main_4"</span><span class="op">)</span>,</span>
<span> y_title <span class="op">=</span> <span class="st">"% of HHs"</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><span class="op">)</span></span></code></pre></div>
<p><img src="reference/figures/README-example-lollipop-chart-2.png" width="65%"></p>
<div class="sourceCode" id="cb16"><pre class="downlit sourceCode r">
<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="fu"><a href="https://rdrr.io/r/base/Random.html" class="external-link">set.seed</a></span><span class="op">(</span><span class="fl">123</span><span class="op">)</span></span>
<span><span class="va">df_grouped</span> <span class="op">&lt;-</span> <span class="fu">tibble</span><span class="fu">::</span><span class="fu"><a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a></span><span class="op">(</span></span>
<span> admin1 <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><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="st">"A"</span>, <span class="st">"B"</span>, <span class="st">"C"</span>, <span class="st">"D"</span>, <span class="st">"E"</span>, <span class="st">"F"</span><span class="op">)</span>, <span class="fl">2</span><span class="op">)</span>,</span>
<span> group <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/rep.html" class="external-link">rep</a></span><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="st">"Group A"</span>, <span class="st">"Group B"</span><span class="op">)</span>, each <span class="op">=</span> <span class="fl">6</span><span class="op">)</span>,</span>
<span> stat <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="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">6</span>, mean <span class="op">=</span> <span class="fl">40</span>, sd <span class="op">=</span> <span class="fl">10</span><span class="op">)</span>, <span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">6</span>, mean <span class="op">=</span> <span class="fl">60</span>, sd <span class="op">=</span> <span class="fl">10</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="op">)</span> <span class="op">|&gt;</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 class="co"># Grouped lollipop chart with proper side-by-side positioning</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> x <span class="op">=</span> <span class="st">"admin1"</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> order <span class="op">=</span> <span class="st">"grouped_y"</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> 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> 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>
<p><img src="reference/figures/README-example-lollipop-chart-3.png" width="65%"></p>
<div class="sourceCode" id="cb17"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span></span>
<span><span class="co"># Horizontal grouped lollipop chart</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> x <span class="op">=</span> <span class="st">"admin1"</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> 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> 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> 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>
<p><img src="reference/figures/README-example-lollipop-chart-4.png" width="65%"></p>
</div>
</div>
</div>
</main><aside class="col-md-3"><div class="links">
<h2 data-toc-skip>Links</h2>
<ul class="list-unstyled">
<li><a href="https://github.com/gnoblet/visualizeR/" class="external-link">Browse source code</a></li>
</ul>
</div>
<div class="license">
<h2 data-toc-skip>License</h2>
<ul class="list-unstyled">
<li><a href="LICENSE.html">Full license</a></li>
<li><small>GPL (&gt;= 3)</small></li>
</ul>
</div>
<div class="citation">
<h2 data-toc-skip>Citation</h2>
<ul class="list-unstyled">
<li><a href="authors.html#citation">Citing visualizeR</a></li>
</ul>
</div>
<div class="developers">
<h2 data-toc-skip>Developers</h2>
<ul class="list-unstyled">
<li>Noblet Guillaume <br><small class="roles"> Author, maintainer </small> </li>
</ul>
</div>
<div class="dev-status">
<h2 data-toc-skip>Dev status</h2>
<ul class="list-unstyled">
<li><a href="https://github.com/gnoblet/visualizeR/actions/workflows/R-CMD-check.yml" class="external-link"><img src="https://github.com/gnoblet/visualizeR/actions/workflows/R-CMD-check.yml/badge.svg" alt="R-CMD-check"></a></li>
<li><a href="https://app.codecov.io/gh/gnoblet/visualizeR?branch=main" class="external-link"><img src="https://codecov.io/gh/gnoblet/visualizeR/branch/main/graph/badge.svg" alt="Codecov test coverage"></a></li>
</ul>
</div>
</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>

14
katex-auto.js Normal file
View file

@ -0,0 +1,14 @@
// https://github.com/jgm/pandoc/blob/29fa97ab96b8e2d62d48326e1b949a71dc41f47a/src/Text/Pandoc/Writers/HTML.hs#L332-L345
document.addEventListener("DOMContentLoaded", function () {
var mathElements = document.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains("display"),
throwOnError: false,
macros: macros,
fleqn: false
});
}}});

85
lightswitch.js Normal file
View file

@ -0,0 +1,85 @@
/*!
* Color mode toggler for Bootstrap's docs (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors
* Licensed under the Creative Commons Attribution 3.0 Unported License.
* Updates for {pkgdown} by the {bslib} authors, also licensed under CC-BY-3.0.
*/
const getStoredTheme = () => localStorage.getItem('theme')
const setStoredTheme = theme => localStorage.setItem('theme', theme)
const getPreferredTheme = () => {
const storedTheme = getStoredTheme()
if (storedTheme) {
return storedTheme
}
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
}
const setTheme = theme => {
if (theme === 'auto') {
document.documentElement.setAttribute('data-bs-theme', (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'))
} else {
document.documentElement.setAttribute('data-bs-theme', theme)
}
}
function bsSetupThemeToggle () {
'use strict'
const showActiveTheme = (theme, focus = false) => {
var activeLabel, activeIcon;
document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
const buttonTheme = element.getAttribute('data-bs-theme-value')
const isActive = buttonTheme == theme
element.classList.toggle('active', isActive)
element.setAttribute('aria-pressed', isActive)
if (isActive) {
activeLabel = element.textContent;
activeIcon = element.querySelector('span').classList.value;
}
})
const themeSwitcher = document.querySelector('#dropdown-lightswitch')
if (!themeSwitcher) {
return
}
themeSwitcher.setAttribute('aria-label', activeLabel)
themeSwitcher.querySelector('span').classList.value = activeIcon;
if (focus) {
themeSwitcher.focus()
}
}
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
const storedTheme = getStoredTheme()
if (storedTheme !== 'light' && storedTheme !== 'dark') {
setTheme(getPreferredTheme())
}
})
window.addEventListener('DOMContentLoaded', () => {
showActiveTheme(getPreferredTheme())
document
.querySelectorAll('[data-bs-theme-value]')
.forEach(toggle => {
toggle.addEventListener('click', () => {
const theme = toggle.getAttribute('data-bs-theme-value')
setTheme(theme)
setStoredTheme(theme)
showActiveTheme(theme, true)
})
})
})
}
setTheme(getPreferredTheme());
bsSetupThemeToggle();

12
link.svg Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
<style type="text/css">
.st0{fill:#75AADB;}
</style>
<path class="st0" d="M4,11.3h1.3v1.3H4c-2,0-4-2.3-4-4.7s2.1-4.7,4-4.7h5.3c1.9,0,4,2.3,4,4.7c0,1.9-1.2,3.6-2.7,4.3v-1.5
C11.4,10.2,12,9.1,12,8c0-1.7-1.4-3.3-2.7-3.3H4C2.7,4.7,1.3,6.3,1.3,8S2.7,11.3,4,11.3z M16,7.3h-1.3v1.3H16c1.3,0,2.7,1.6,2.7,3.3
s-1.4,3.3-2.7,3.3h-5.3C9.4,15.3,8,13.7,8,12c0-1.1,0.6-2.2,1.3-2.8V7.7C7.9,8.4,6.7,10.1,6.7,12c0,2.4,2.1,4.7,4,4.7H16
c1.9,0,4-2.3,4-4.7S18,7.3,16,7.3z"/>
</svg>

After

Width:  |  Height:  |  Size: 810 B

BIN
logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

144
news/index.html Normal file
View file

@ -0,0 +1,144 @@
<!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>Changelog • 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="Changelog"><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="nav-item"><a class="nav-link" href="../reference/index.html">Reference</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">
<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-news">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Changelog</h1>
<small>Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/NEWS.md" class="external-link"><code>NEWS.md</code></a></small>
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.8.9000" id="visualizer-089000">visualizeR 0.8.9000<a class="anchor" aria-label="anchor" href="#visualizer-089000"></a></h2>
<ul><li>Add <code>waffle()</code>.</li>
<li>Add a <code>pal_default()</code> function as a fallback for scale functions and as an initiative in <code>theme_reach()</code>. It uses <code>viridis::magma()</code>.</li>
<li>Update of AGORA palettes.</li>
<li>Some other small bug fixes.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.7.9000" id="visualizer-079000">visualizeR 0.7.9000<a class="anchor" aria-label="anchor" href="#visualizer-079000"></a></h2>
<ul><li>Add <code><a href="../reference/dumbbell.html">dumbbell()</a></code>.</li>
<li>Add <code>alluvial()</code>
</li>
<li>Add <code>donut()</code>
</li>
<li>Add <code><a href="../reference/lollipop.html">lollipop()</a></code>
</li>
<li>Add further parameters to <code>theme_reach()</code>, including grid lines args.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.6.9000" id="visualizer-069000">visualizeR 0.6.9000<a class="anchor" aria-label="anchor" href="#visualizer-069000"></a></h2>
<ul><li>Add <code><a href="../reference/dumbbell.html">dumbbell()</a></code>.</li>
<li>Add further parameters to <code>theme_reach()</code>.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.5.9000" id="visualizer-059000">visualizeR 0.5.9000<a class="anchor" aria-label="anchor" href="#visualizer-059000"></a></h2>
<ul><li>Add wrapping of title, subtitle and caption thanks to <code>ggtext</code>
</li>
<li>Add wrapping of labels for <code><a href="../reference/bar.html">bar()</a></code> x-discrete scale.</li>
<li>Add further parameters to <code>theme_reach()</code>
</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.4.9000" id="visualizer-049000">visualizeR 0.4.9000<a class="anchor" aria-label="anchor" href="#visualizer-049000"></a></h2>
<ul><li>Breaking changes: remove dependency to <code>ggblanket</code>.</li>
<li>Full rewrite of <code>theme_reach()</code>.</li>
<li>
<code>bar_reach</code> is now <code><a href="../reference/bar.html">bar()</a></code> and theming is passed through argument <code>theme</code> for which default is <code>theme_reach()</code>.</li>
<li>
<code>point_reach</code> is now <code><a href="../reference/point.html">point()</a></code> and theming is passed through argument <code>theme</code> for which default is <code>theme_reach()</code>.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.3.9000" id="visualizer-039000">visualizeR 0.3.9000<a class="anchor" aria-label="anchor" href="#visualizer-039000"></a></h2>
<ul><li>Breaking changes: update to <code>ggblanket</code> v1.6.1.</li>
<li>Add plotting functions for indicator maps.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.2.9000" id="visualizer-029000">visualizeR 0.2.9000<a class="anchor" aria-label="anchor" href="#visualizer-029000"></a></h2>
<ul><li>Breaking changes: almost all functions got refinements, and there are new functions, typically <code><a href="../reference/bar.html">hbar()</a></code> becomes <code>bar_reach()</code> and <code>point_reach()</code> is added.</li>
<li>Following <code>theme_reach()</code> is now used by all plotting functions.</li>
<li>Add README.md.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.1.7.9000" id="visualizer-0179000">visualizeR 0.1.7.9000<a class="anchor" aria-label="anchor" href="#visualizer-0179000"></a></h2>
<ul><li>Fixed some color palettes.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.1.6.9000" id="visualizer-0169000">visualizeR 0.1.6.9000<a class="anchor" aria-label="anchor" href="#visualizer-0169000"></a></h2>
<ul><li>IMPACT colors and palettes are added: function <code>cols_impact()</code> <code>pal_impact()</code>.</li>
<li>Color palettes from REACH are added (2 to 7 continuous palettes) ; see updated <code>cols_reach()</code> and <code>pal_reach()</code>.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.1.5.9000" id="visualizer-0159000">visualizeR 0.1.5.9000<a class="anchor" aria-label="anchor" href="#visualizer-0159000"></a></h2>
<ul><li>Move from <code>simplevis</code> to successor <code>ggblanket</code>.</li>
</ul><hr></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/bar.html">hbar()</a></code> gains a new boolean argument <code>reverse</code> to pass to <code>pal_reach()</code> or <code>pal_agora()</code>, indicating if the color palette should be reversed or not.</li>
</ul><hr></div>
<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>
<ul><li>Small change to <code><a href="../reference/bar.html">hbar()</a></code>: removes error arg within <code>simplevis::gg_hbar()</code> call.</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.1.2.9000" id="visualizer-0129000">visualizeR 0.1.2.9000<a class="anchor" aria-label="anchor" href="#visualizer-0129000"></a></h2>
<ul><li>There was a duplicate <code>scale_color()</code> function, which should have been and is now <code>scale_fill()</code>
</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.1.1.9000" id="visualizer-0119000">visualizeR 0.1.1.9000<a class="anchor" aria-label="anchor" href="#visualizer-0119000"></a></h2>
<ul><li>Added two horizontal bar functions: <code><a href="../reference/bar.html">hbar()</a></code>, <code>hbar_percent()</code> (<a href="https://github.com/gnoblet/visualizeR/issues/3" class="external-link">#3</a>)</li>
<li>Added some internals to check for missing columns and bad arguments (<a href="https://github.com/gnoblet/visualizeR/issues/3" class="external-link">#3</a>)</li>
<li>Modified some <code>theme_reach()</code> documentation</li>
<li>Add <code>buffer_bbox()</code> function to produce a buffered bbox, e.g. for use with <code>tmap</code>
</li>
</ul><hr></div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="0.1.0" id="visualizer-010">visualizeR 0.1.0<a class="anchor" aria-label="anchor" href="#visualizer-010"></a></h2>
<ul><li>Added a <code>NEWS.md</code> file to track changes to the package</li>
<li>Initiate repo</li>
</ul></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>

162
pkgdown.js Normal file
View file

@ -0,0 +1,162 @@
/* http://gregfranko.com/blog/jquery-best-practices/ */
(function($) {
$(function() {
$('nav.navbar').headroom();
Toc.init({
$nav: $("#toc"),
$scope: $("main h2, main h3, main h4, main h5, main h6")
});
if ($('#toc').length) {
$('body').scrollspy({
target: '#toc',
offset: $("nav.navbar").outerHeight() + 1
});
}
// Activate popovers
$('[data-bs-toggle="popover"]').popover({
container: 'body',
html: true,
trigger: 'focus',
placement: "top",
sanitize: false,
});
$('[data-bs-toggle="tooltip"]').tooltip();
/* Clipboard --------------------------*/
function changeTooltipMessage(element, msg) {
var tooltipOriginalTitle=element.getAttribute('data-bs-original-title');
element.setAttribute('data-bs-original-title', msg);
$(element).tooltip('show');
element.setAttribute('data-bs-original-title', tooltipOriginalTitle);
}
if(ClipboardJS.isSupported()) {
$(document).ready(function() {
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>";
$("div.sourceCode").addClass("hasCopyButton");
// Insert copy buttons:
$(copyButton).prependTo(".hasCopyButton");
// Initialize tooltips:
$('.btn-copy-ex').tooltip({container: 'body'});
// Initialize clipboard:
var clipboard = new ClipboardJS('[data-clipboard-copy]', {
text: function(trigger) {
return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, "");
}
});
clipboard.on('success', function(e) {
changeTooltipMessage(e.trigger, 'Copied!');
e.clearSelection();
});
clipboard.on('error', function(e) {
changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy');
});
});
}
/* Search marking --------------------------*/
var url = new URL(window.location.href);
var toMark = url.searchParams.get("q");
var mark = new Mark("main#main");
if (toMark) {
mark.mark(toMark, {
accuracy: {
value: "complementary",
limiters: [",", ".", ":", "/"],
}
});
}
/* Search --------------------------*/
/* Adapted from https://github.com/rstudio/bookdown/blob/2d692ba4b61f1e466c92e78fd712b0ab08c11d31/inst/resources/bs4_book/bs4_book.js#L25 */
// Initialise search index on focus
var fuse;
$("#search-input").focus(async function(e) {
if (fuse) {
return;
}
$(e.target).addClass("loading");
var response = await fetch($("#search-input").data("search-index"));
var data = await response.json();
var options = {
keys: ["what", "text", "code"],
ignoreLocation: true,
threshold: 0.1,
includeMatches: true,
includeScore: true,
};
fuse = new Fuse(data, options);
$(e.target).removeClass("loading");
});
// Use algolia autocomplete
var options = {
autoselect: true,
debug: true,
hint: false,
minLength: 2,
};
var q;
async function searchFuse(query, callback) {
await fuse;
var items;
if (!fuse) {
items = [];
} else {
q = query;
var results = fuse.search(query, { limit: 20 });
items = results
.filter((x) => x.score <= 0.75)
.map((x) => x.item);
if (items.length === 0) {
items = [{dir:"Sorry 😿",previous_headings:"",title:"No results found.",what:"No results found.",path:window.location.href}];
}
}
callback(items);
}
$("#search-input").autocomplete(options, [
{
name: "content",
source: searchFuse,
templates: {
suggestion: (s) => {
if (s.title == s.what) {
return `${s.dir} > <div class="search-details"> ${s.title}</div>`;
} else if (s.previous_headings == "") {
return `${s.dir} > <div class="search-details"> ${s.title}</div> > ${s.what}`;
} else {
return `${s.dir} > <div class="search-details"> ${s.title}</div> > ${s.previous_headings} > ${s.what}`;
}
},
},
},
]).on('autocomplete:selected', function(event, s) {
window.location.href = s.path + "?q=" + q + "#" + s.id;
});
});
})(window.jQuery || window.$)
document.addEventListener('keydown', function(event) {
// Check if the pressed key is '/'
if (event.key === '/') {
event.preventDefault(); // Prevent any default action associated with the '/' key
document.getElementById('search-input').focus(); // Set focus to the search input
}
});

8
pkgdown.yml Normal file
View file

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

256
reference/bar.html Normal file
View file

@ -0,0 +1,256 @@
<!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 bar chart — hbar • 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 bar chart — hbar"><meta name="description" content="`bar()` is a simple bar chart with some customization allowed, in particular the `theme_fun` argument for theming. `hbar()` uses `bar()` with sane defaults for a horizontal bar chart."><meta property="og:description" content="`bar()` is a simple bar chart with some customization allowed, in particular the `theme_fun` argument for theming. `hbar()` uses `bar()` with sane defaults for a horizontal bar 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 bar chart</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/bar.R" class="external-link"><code>R/bar.R</code></a></small>
<div class="d-none name"><code>bar.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>`bar()` is a simple bar chart with some customization allowed, in particular the `theme_fun` argument for theming. `hbar()` uses `bar()` with sane defaults for a horizontal bar 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">hbar</span><span class="op">(</span></span>
<span> <span class="va">...</span>,</span>
<span> flip <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> add_text <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> theme_fun <span class="op">=</span> <span class="fu"><a href="theme_default.html">theme_bar</a></span><span class="op">(</span>flip <span class="op">=</span> <span class="va">flip</span>, add_text <span class="op">=</span> <span class="va">add_text</span><span class="op">)</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu">bar</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">"none"</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> position <span class="op">=</span> <span class="st">"dodge"</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> width <span class="op">=</span> <span class="fl">0.8</span>,</span>
<span> add_text <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> add_text_size <span class="op">=</span> <span class="fl">4.5</span>,</span>
<span> add_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> add_text_font_face <span class="op">=</span> <span class="st">"bold"</span>,</span>
<span> add_text_threshold_display <span class="op">=</span> <span class="fl">0.05</span>,</span>
<span> add_text_suffix <span class="op">=</span> <span class="st">"%"</span>,</span>
<span> add_text_expand_limit <span class="op">=</span> <span class="fl">1.2</span>,</span>
<span> add_text_round <span class="op">=</span> <span class="fl">1</span>,</span>
<span> theme_fun <span class="op">=</span> <span class="fu"><a href="theme_default.html">theme_bar</a></span><span class="op">(</span>flip <span class="op">=</span> <span class="va">flip</span>, add_text <span class="op">=</span> <span class="va">add_text</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>, 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 `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>
<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-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 numeric column.</p></dd>
<dt id="arg-y">y<a class="anchor" aria-label="anchor" href="#arg-y"></a></dt>
<dd><p>A quoted character column or coercible as a character 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 bars (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-position">position<a class="anchor" aria-label="anchor" href="#arg-position"></a></dt>
<dd><p>Should the chart be stacked? Default to "dodge". Can take "dodge" and "stack".</p></dd>
<dt id="arg-alpha">alpha<a class="anchor" aria-label="anchor" href="#arg-alpha"></a></dt>
<dd><p>Fill transparency.</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-width">width<a class="anchor" aria-label="anchor" href="#arg-width"></a></dt>
<dd><p>Bar width.</p></dd>
<dt id="arg-add-text-size">add_text_size<a class="anchor" aria-label="anchor" href="#arg-add-text-size"></a></dt>
<dd><p>Text size.</p></dd>
<dt id="arg-add-text-color">add_text_color<a class="anchor" aria-label="anchor" href="#arg-add-text-color"></a></dt>
<dd><p>Text color.</p></dd>
<dt id="arg-add-text-font-face">add_text_font_face<a class="anchor" aria-label="anchor" href="#arg-add-text-font-face"></a></dt>
<dd><p>Text font_face.</p></dd>
<dt id="arg-add-text-threshold-display">add_text_threshold_display<a class="anchor" aria-label="anchor" href="#arg-add-text-threshold-display"></a></dt>
<dd><p>Minimum value to add the text label.</p></dd>
<dt id="arg-add-text-suffix">add_text_suffix<a class="anchor" aria-label="anchor" href="#arg-add-text-suffix"></a></dt>
<dd><p>If percent is FALSE, should we add a suffix to the text label?</p></dd>
<dt id="arg-add-text-expand-limit">add_text_expand_limit<a class="anchor" aria-label="anchor" href="#arg-add-text-expand-limit"></a></dt>
<dd><p>Default to adding 10% on top of the bar.</p></dd>
<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>
<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>
</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>Check if variables are in data frame — check_vars_in_df • 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="Check if variables are in data frame — check_vars_in_df"><meta name="description" content="Check if variables are in data frame"><meta property="og:description" content="Check if variables are in data frame"><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>Check if variables are in data frame</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/checks.R" class="external-link"><code>R/checks.R</code></a></small>
<div class="d-none name"><code>check_vars_in_df.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Check if variables are in data frame</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">check_vars_in_df</span><span class="op">(</span><span class="va">df</span>, <span class="va">vars</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-df">df<a class="anchor" aria-label="anchor" href="#arg-df"></a></dt>
<dd><p>A data frame</p></dd>
<dt id="arg-vars">vars<a class="anchor" aria-label="anchor" href="#arg-vars"></a></dt>
<dd><p>A vector of variable names</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>A stop statement</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>

95
reference/color.html Normal file
View file

@ -0,0 +1,95 @@
<!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>Helpers to extract defined colors as hex codes — color • 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="Helpers to extract defined colors as hex codes — color"><meta name="description" content="[color()] returns the requested columns, returns NA if absent. [color_pattern()] returns all colors that start with the pattern."><meta property="og:description" content="[color()] returns the requested columns, returns NA if absent. [color_pattern()] returns all colors that start with the pattern."><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>Helpers to extract defined colors as hex codes</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/color.R" class="external-link"><code>R/color.R</code></a></small>
<div class="d-none name"><code>color.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>[color()] returns the requested columns, returns NA if absent. [color_pattern()] returns all colors that start with the pattern.</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">color</span><span class="op">(</span><span class="va">...</span>, unname <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span>
<span></span>
<span><span class="fu">color_pattern</span><span class="op">(</span><span class="va">pattern</span>, unname <span class="op">=</span> <span class="cn">TRUE</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>Character names of colors. If NULL returns all colors.</p></dd>
<dt id="arg-unname">unname<a class="anchor" aria-label="anchor" href="#arg-unname"></a></dt>
<dd><p>Boolean. Should the output vector be unnamed? Default to `TRUE`.</p></dd>
<dt id="arg-pattern">pattern<a class="anchor" aria-label="anchor" href="#arg-pattern"></a></dt>
<dd><p>Pattern of the start of colors' name.</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>Hex codes named or unnamed.</p>
</div>
<div class="section level2">
<h2 id="naming-of-colors">Naming of colors<a class="anchor" aria-label="anchor" href="#naming-of-colors"></a></h2>
<p>* All branding colors start with "branding";
* All , categorical colors start with ", cat_";
* All sequential colors start with "seq_";</p>
<p>Then, a number indicates the number of colors that belong to the palettes, a string the name of the palette, and, finally, a number the position of the color. E.g., "seq_5_red_4" would be the 4th color of a continuous palettes of 5 colors in the red band. Exception is made for white, light_grey, dark_grey, and black.</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,8 @@
<html>
<head>
<meta http-equiv="refresh" content="0;URL=https://gnoblet.github.io/visualizeR/reference/color.html" />
<meta name="robots" content="noindex">
<link rel="canonical" href="https://gnoblet.github.io/visualizeR/reference/color.html">
</head>
</html>

198
reference/dumbbell.html Normal file
View file

@ -0,0 +1,198 @@
<!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>Make dumbbell chart. — dumbbell • 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="Make dumbbell chart. — dumbbell"><meta name="description" content="Make dumbbell chart."><meta property="og:description" content="Make dumbbell 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>Make dumbbell chart.</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/dumbbell.R" class="external-link"><code>R/dumbbell.R</code></a></small>
<div class="d-none name"><code>dumbbell.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Make dumbbell 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">dumbbell</span><span class="op">(</span></span>
<span> <span class="va">df</span>,</span>
<span> <span class="va">col</span>,</span>
<span> <span class="va">group_x</span>,</span>
<span> <span class="va">group_y</span>,</span>
<span> point_size <span class="op">=</span> <span class="fl">5</span>,</span>
<span> point_alpha <span class="op">=</span> <span class="fl">1</span>,</span>
<span> segment_size <span class="op">=</span> <span class="fl">2.5</span>,</span>
<span> segment_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"light_blue_grey"</span><span class="op">)</span>,</span>
<span> group_x_title <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> group_y_title <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> x_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> line_to_y_axis <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> line_to_y_axis_type <span class="op">=</span> <span class="fl">3</span>,</span>
<span> line_to_y_axis_width <span class="op">=</span> <span class="fl">0.5</span>,</span>
<span> line_to_y_axis_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> add_text <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> add_text_vjust <span class="op">=</span> <span class="fl">2</span>,</span>
<span> add_text_size <span class="op">=</span> <span class="fl">3.5</span>,</span>
<span> add_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> theme_fun <span class="op">=</span> <span class="fu"><a href="theme_default.html">theme_dumbbell</a></span><span class="op">(</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-df">df<a class="anchor" aria-label="anchor" href="#arg-df"></a></dt>
<dd><p>A data frame.</p></dd>
<dt id="arg-col">col<a class="anchor" aria-label="anchor" href="#arg-col"></a></dt>
<dd><p>A numeric column.</p></dd>
<dt id="arg-group-x">group_x<a class="anchor" aria-label="anchor" href="#arg-group-x"></a></dt>
<dd><p>The grouping column on the x-axis; only two groups.</p></dd>
<dt id="arg-group-y">group_y<a class="anchor" aria-label="anchor" href="#arg-group-y"></a></dt>
<dd><p>The grouping column on the y-axis.</p></dd>
<dt id="arg-point-size">point_size<a class="anchor" aria-label="anchor" href="#arg-point-size"></a></dt>
<dd><p>Point size.</p></dd>
<dt id="arg-point-alpha">point_alpha<a class="anchor" aria-label="anchor" href="#arg-point-alpha"></a></dt>
<dd><p>Point alpha.</p></dd>
<dt id="arg-segment-size">segment_size<a class="anchor" aria-label="anchor" href="#arg-segment-size"></a></dt>
<dd><p>Segment size.</p></dd>
<dt id="arg-segment-color">segment_color<a class="anchor" aria-label="anchor" href="#arg-segment-color"></a></dt>
<dd><p>Segment color.</p></dd>
<dt id="arg-group-x-title">group_x_title<a class="anchor" aria-label="anchor" href="#arg-group-x-title"></a></dt>
<dd><p>X-group and legend title.</p></dd>
<dt id="arg-group-y-title">group_y_title<a class="anchor" aria-label="anchor" href="#arg-group-y-title"></a></dt>
<dd><p>Y-axis and group title.</p></dd>
<dt id="arg-x-title">x_title<a class="anchor" aria-label="anchor" href="#arg-x-title"></a></dt>
<dd><p>X-axis title.</p></dd>
<dt id="arg-title">title<a class="anchor" aria-label="anchor" href="#arg-title"></a></dt>
<dd><p>Title.</p></dd>
<dt id="arg-subtitle">subtitle<a class="anchor" aria-label="anchor" href="#arg-subtitle"></a></dt>
<dd><p>Subtitle.</p></dd>
<dt id="arg-caption">caption<a class="anchor" aria-label="anchor" href="#arg-caption"></a></dt>
<dd><p>Caption.</p></dd>
<dt id="arg-line-to-y-axis">line_to_y_axis<a class="anchor" aria-label="anchor" href="#arg-line-to-y-axis"></a></dt>
<dd><p>TRUE or FALSE; add a line connected points and Y-axis.</p></dd>
<dt id="arg-line-to-y-axis-type">line_to_y_axis_type<a class="anchor" aria-label="anchor" href="#arg-line-to-y-axis-type"></a></dt>
<dd><p>Line to Y-axis type.</p></dd>
<dt id="arg-line-to-y-axis-width">line_to_y_axis_width<a class="anchor" aria-label="anchor" href="#arg-line-to-y-axis-width"></a></dt>
<dd><p>Line to Y-axis width.</p></dd>
<dt id="arg-line-to-y-axis-color">line_to_y_axis_color<a class="anchor" aria-label="anchor" href="#arg-line-to-y-axis-color"></a></dt>
<dd><p>Line to Y-axis color.</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 text at the points.</p></dd>
<dt id="arg-add-text-vjust">add_text_vjust<a class="anchor" aria-label="anchor" href="#arg-add-text-vjust"></a></dt>
<dd><p>Vertical adjustment.</p></dd>
<dt id="arg-add-text-size">add_text_size<a class="anchor" aria-label="anchor" href="#arg-add-text-size"></a></dt>
<dd><p>Text size.</p></dd>
<dt id="arg-add-text-color">add_text_color<a class="anchor" aria-label="anchor" href="#arg-add-text-color"></a></dt>
<dd><p>Text color.</p></dd>
<dt id="arg-theme-fun">theme_fun<a class="anchor" aria-label="anchor" href="#arg-theme-fun"></a></dt>
<dd><p>A ggplot2 theme, default to `theme_dumbbell()`</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>A ggplot2 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>A ggplot2 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 dumbbell chart.</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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 838 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
reference/figures/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 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>

141
reference/index.html Normal file
View file

@ -0,0 +1,141 @@
<!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>Package index • 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="Package index"><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-index">
<div class="row">
<main id="main" class="col-md-9"><div class="page-header">
<img src="../logo.png" class="logo" alt=""><h1>Package index</h1>
</div>
<div class="section level2">
<h2 id="all-functions">All functions<a class="anchor" aria-label="anchor" href="#all-functions"></a></h2>
</div><div class="section level2">
<dl><dt>
<code><a href="bar.html">hbar()</a></code> <code><a href="bar.html">bar()</a></code>
</dt>
<dd>Simple bar chart</dd>
</dl><dl><dt>
<code><a href="check_vars_in_df.html">check_vars_in_df()</a></code>
</dt>
<dd>Check if variables are in data frame</dd>
</dl><dl><dt>
<code><a href="color.html">color()</a></code> <code><a href="color.html">color_pattern()</a></code>
</dt>
<dd>Helpers to extract defined colors as hex codes</dd>
</dl><dl><dt>
<code><a href="dumbbell.html">dumbbell()</a></code>
</dt>
<dd>Make dumbbell chart.</dd>
</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>
</dt>
<dd>Interpolate a color palette</dd>
</dl><dl><dt>
<code><a href="palette_gen.html">palette_gen()</a></code> <code><a href="palette_gen.html">palette_gen_categorical()</a></code> <code><a href="palette_gen.html">palette_gen_sequential()</a></code>
</dt>
<dd>Generate color palettes</dd>
</dl><dl><dt>
<code><a href="point.html">point()</a></code>
</dt>
<dd>Simple scatterplot</dd>
</dl><dl><dt>
<code><a href="reorder_by.html">reorder_by()</a></code>
</dt>
<dd>Reorder a Data Frame</dd>
</dl><dl><dt>
<code><a href="scale_color_visualizer_discrete.html">scale_color_visualizer_discrete()</a></code> <code><a href="scale_color_visualizer_discrete.html">scale_fill_visualizer_discrete()</a></code> <code><a href="scale_color_visualizer_discrete.html">scale_fill_visualizer_continuous()</a></code> <code><a href="scale_color_visualizer_discrete.html">scale_color_visualizer_continuous()</a></code>
</dt>
<dd>Scale constructors for fill and colors</dd>
</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_lollipop()</a></code> <code><a href="theme_default.html">theme_point()</a></code>
</dt>
<dd>Custom Theme for Bar Charts</dd>
</dl></div>
</main></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>

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>

88
reference/palette.html Normal file
View file

@ -0,0 +1,88 @@
<!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>Interpolate a color palette — palette • 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="Interpolate a color palette — palette"><meta name="description" content="Interpolate a color palette"><meta property="og:description" content="Interpolate a color palette"><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>Interpolate a color palette</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/palette.R" class="external-link"><code>R/palette.R</code></a></small>
<div class="d-none name"><code>palette.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Interpolate a color palette</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">palette</span><span class="op">(</span>palette <span class="op">=</span> <span class="st">"cat_5_main"</span>, reverse <span class="op">=</span> <span class="cn">FALSE</span>, show_palettes <span class="op">=</span> <span class="cn">FALSE</span>, <span class="va">...</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-palette">palette<a class="anchor" aria-label="anchor" href="#arg-palette"></a></dt>
<dd><p>Character name of a palette in palettes</p></dd>
<dt id="arg-reverse">reverse<a class="anchor" aria-label="anchor" href="#arg-reverse"></a></dt>
<dd><p>Boolean indicating whether the palette should be reversed</p></dd>
<dt id="arg-show-palettes">show_palettes<a class="anchor" aria-label="anchor" href="#arg-show-palettes"></a></dt>
<dd><p>Should the ouput be the set of palettes names to pick from? Default to `FALSE`</p></dd>
<dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>Additional arguments to pass to colorRampPalette()</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>A color palette</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,88 @@
<!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>Generate color palettes — palette_gen • 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="Generate color palettes — palette_gen"><meta name="description" content="[palette_gen()] generates a color palette and let you choose whether continuous or discrete. [palette_gen_categorical()] and [palette_gen_sequential()] generates respectively discrete and continuous palettes."><meta property="og:description" content="[palette_gen()] generates a color palette and let you choose whether continuous or discrete. [palette_gen_categorical()] and [palette_gen_sequential()] generates respectively discrete and continuous palettes."><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>Generate color palettes</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/palette_gen.R" class="external-link"><code>R/palette_gen.R</code></a></small>
<div class="d-none name"><code>palette_gen.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>[palette_gen()] generates a color palette and let you choose whether continuous or discrete. [palette_gen_categorical()] and [palette_gen_sequential()] generates respectively discrete and continuous palettes.</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">palette_gen</span><span class="op">(</span><span class="va">palette</span>, <span class="va">type</span>, direction <span class="op">=</span> <span class="fl">1</span>, <span class="va">...</span><span class="op">)</span></span>
<span></span>
<span><span class="fu">palette_gen_categorical</span><span class="op">(</span>palette <span class="op">=</span> <span class="st">"cat_5_main"</span>, direction <span class="op">=</span> <span class="fl">1</span><span class="op">)</span></span>
<span></span>
<span><span class="fu">palette_gen_sequential</span><span class="op">(</span>palette <span class="op">=</span> <span class="st">"cat_5_main"</span>, direction <span class="op">=</span> <span class="fl">1</span>, <span class="va">...</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-palette">palette<a class="anchor" aria-label="anchor" href="#arg-palette"></a></dt>
<dd><p>Palette name from [palette()].</p></dd>
<dt id="arg-type">type<a class="anchor" aria-label="anchor" href="#arg-type"></a></dt>
<dd><p>"categorical" or "sequential" or "divergent".</p></dd>
<dt id="arg-direction">direction<a class="anchor" aria-label="anchor" href="#arg-direction"></a></dt>
<dd><p>1 or -1; should the order of colors be reversed?</p></dd>
<dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>Additional arguments to pass to [colorRampPalette()] when type is "continuous".</p></dd>
</dl></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,8 @@
<html>
<head>
<meta http-equiv="refresh" content="0;URL=https://gnoblet.github.io/visualizeR/reference/palette_gen.html" />
<meta name="robots" content="noindex">
<link rel="canonical" href="https://gnoblet.github.io/visualizeR/reference/palette_gen.html">
</head>
</html>

View file

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

189
reference/point.html Normal file
View file

@ -0,0 +1,189 @@
<!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 scatterplot — point • 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 scatterplot — point"><meta name="description" content="Simple scatterplot"><meta property="og:description" content="Simple scatterplot"><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 scatterplot</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/point.R" class="external-link"><code>R/point.R</code></a></small>
<div class="d-none name"><code>point.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Simple scatterplot</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">point</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> facet_scales <span class="op">=</span> <span class="st">"free"</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> 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">TRUE</span>,</span>
<span> alpha <span class="op">=</span> <span class="fl">1</span>,</span>
<span> size <span class="op">=</span> <span class="fl">2</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> theme_fun <span class="op">=</span> <span class="fu"><a href="theme_default.html">theme_point</a></span><span class="op">(</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-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 numeric 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.</p></dd>
<dt id="arg-facet-scales">facet_scales<a class="anchor" aria-label="anchor" href="#arg-facet-scales"></a></dt>
<dd><p>Character. Either "free" (default) or "fixed" for facet scales.</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-add-color">add_color<a class="anchor" aria-label="anchor" href="#arg-add-color"></a></dt>
<dd><p>Add a color to points (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-flip">flip<a class="anchor" aria-label="anchor" href="#arg-flip"></a></dt>
<dd><p>TRUE or FALSE.</p></dd>
<dt id="arg-alpha">alpha<a class="anchor" aria-label="anchor" href="#arg-alpha"></a></dt>
<dd><p>Fill transparency.</p></dd>
<dt id="arg-size">size<a class="anchor" aria-label="anchor" href="#arg-size"></a></dt>
<dd><p>Point size.</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-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>
<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>
</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>

117
reference/reorder_by.html Normal file
View file

@ -0,0 +1,117 @@
<!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>Reorder a Data Frame — reorder_by • 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="Reorder a Data Frame — reorder_by"><meta name="description" content="Reorder a Data Frame"><meta property="og:description" content="Reorder a Data Frame"><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>Reorder a Data Frame</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/reorder_by.R" class="external-link"><code>R/reorder_by.R</code></a></small>
<div class="d-none name"><code>reorder_by.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Reorder a Data Frame</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">reorder_by</span><span class="op">(</span><span class="va">df</span>, <span class="va">x</span>, <span class="va">y</span>, group <span class="op">=</span> <span class="st">""</span>, order <span class="op">=</span> <span class="st">"y"</span>, dir_order <span class="op">=</span> <span class="fl">1</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-df">df<a class="anchor" aria-label="anchor" href="#arg-df"></a></dt>
<dd><p>A data frame to be reordered.</p></dd>
<dt id="arg-x">x<a class="anchor" aria-label="anchor" href="#arg-x"></a></dt>
<dd><p>A character scalar specifying the column to be reordered.</p></dd>
<dt id="arg-y">y<a class="anchor" aria-label="anchor" href="#arg-y"></a></dt>
<dd><p>A character scalar specifying the column to order by if ordering by values.</p></dd>
<dt id="arg-group">group<a class="anchor" aria-label="anchor" href="#arg-group"></a></dt>
<dd><p>A character scalar specifying the grouping column (optional).</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-dir-order">dir_order<a class="anchor" aria-label="anchor" href="#arg-dir-order"></a></dt>
<dd><p>A logical scalar specifying whether to flip the order.</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>The reordered data frame.</p>
</div>
<div class="section level2">
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
<p>Ordering takes the following possible values:</p>
<p>* "none": No reordering.
* "y": Order by values of y.
* "grouped_y": Order by values of y and group.
* "x": Order alphabetically by x.
* "grouped_x": Order alphabetically by x and group.</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="co"># Example usage</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>col1 <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="st">"b"</span>, <span class="st">"a"</span>, <span class="st">"c"</span><span class="op">)</span>, col2 <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">25</span>, <span class="fl">3</span><span class="op">)</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu">reorder_by</span><span class="op">(</span><span class="va">df</span>, <span class="st">"col1"</span>, <span class="st">"col2"</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> col1 col2</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 1 c 3</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 2 b 10</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> 3 a 25</span>
<span class="r-in"><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

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

View file

@ -0,0 +1,118 @@
<!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>Scale constructors for fill and colors — scale_color_visualizer_discrete • 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="Scale constructors for fill and colors — scale_color_visualizer_discrete"><meta name="description" content="This function is based on [palette()]. If palette is NULL, the used palette will be magma from gpplot2's viridis scale constructors."><meta property="og:description" content="This function is based on [palette()]. If palette is NULL, the used palette will be magma from gpplot2's viridis scale constructors."><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>Scale constructors for fill and colors</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/scale.R" class="external-link"><code>R/scale.R</code></a></small>
<div class="d-none name"><code>scale_color_visualizer_discrete.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>This function is based on [palette()]. If palette is NULL, the used palette will be magma from gpplot2's viridis scale constructors.</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">scale_color_visualizer_discrete</span><span class="op">(</span></span>
<span> palette <span class="op">=</span> <span class="st">"cat_5_main"</span>,</span>
<span> direction <span class="op">=</span> <span class="fl">1</span>,</span>
<span> reverse_guide <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> title_position <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> <span class="va">...</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu">scale_fill_visualizer_discrete</span><span class="op">(</span></span>
<span> palette <span class="op">=</span> <span class="st">"cat_5_main"</span>,</span>
<span> direction <span class="op">=</span> <span class="fl">1</span>,</span>
<span> reverse_guide <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> title_position <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> <span class="va">...</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu">scale_fill_visualizer_continuous</span><span class="op">(</span></span>
<span> palette <span class="op">=</span> <span class="st">"seq_5_main"</span>,</span>
<span> direction <span class="op">=</span> <span class="fl">1</span>,</span>
<span> reverse_guide <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> title_position <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> <span class="va">...</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu">scale_color_visualizer_continuous</span><span class="op">(</span></span>
<span> palette <span class="op">=</span> <span class="st">"seq_5_main"</span>,</span>
<span> direction <span class="op">=</span> <span class="fl">1</span>,</span>
<span> reverse_guide <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> title_position <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span> <span class="va">...</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-palette">palette<a class="anchor" aria-label="anchor" href="#arg-palette"></a></dt>
<dd><p>Palette name from [palette()].</p></dd>
<dt id="arg-direction">direction<a class="anchor" aria-label="anchor" href="#arg-direction"></a></dt>
<dd><p>1 or -1; should the order of colors be reversed?</p></dd>
<dt id="arg-reverse-guide">reverse_guide<a class="anchor" aria-label="anchor" href="#arg-reverse-guide"></a></dt>
<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>
<dd><p>Additional arguments passed to [ggplot2::discrete_scale()] if discrete or [ggplot2::scale_fill_gradient()] if continuous.</p></dd>
</dl></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,8 @@
<html>
<head>
<meta http-equiv="refresh" content="0;URL=https://gnoblet.github.io/visualizeR/reference/scale_color_visualizer_discrete.html" />
<meta name="robots" content="noindex">
<link rel="canonical" href="https://gnoblet.github.io/visualizeR/reference/scale_color_visualizer_discrete.html">
</head>
</html>

View file

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

View file

@ -0,0 +1,467 @@
<!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.
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: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>
<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>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 2 more</small>
<div class="d-none name"><code>theme_default.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Give some reach colors and fonts to a ggplot.</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 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">theme_bar</span><span class="op">(</span></span>
<span> flip <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> add_text <span class="op">=</span> <span class="cn">FALSE</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_default</span><span class="op">(</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">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_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_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_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_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> text_font_family <span class="op">=</span> <span class="st">"Carlito"</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_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_border <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> panel_border_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_position <span class="op">=</span> <span class="st">"top"</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_reverse <span class="op">=</span> <span class="cn">TRUE</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_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_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_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> 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_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_bg_color <span class="op">=</span> <span class="fu"><a href="color.html">color</a></span><span class="op">(</span><span class="st">"lighter_grey"</span><span class="op">)</span>,</span>
<span> axis_x <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> axis_y <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> axis_text_x <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> axis_line_x <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> axis_ticks_x <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> axis_text_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_text_font_family <span class="op">=</span> <span class="st">"Carlito"</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_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_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_title_font_face <span class="op">=</span> <span class="st">"plain"</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> grid_major_x <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> grid_major_y <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> grid_major_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> grid_major_x_size <span class="op">=</span> <span class="fl">0.1</span>,</span>
<span> grid_major_y_size <span class="op">=</span> <span class="fl">0.1</span>,</span>
<span> grid_minor_x <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span> grid_minor_y <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span> grid_minor_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> grid_minor_x_size <span class="op">=</span> <span class="fl">0.05</span>,</span>
<span> grid_minor_y_size <span class="op">=</span> <span class="fl">0.05</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_position_to_plot <span class="op">=</span> <span class="cn">TRUE</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> <span class="va">...</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu">theme_dumbbell</span><span class="op">(</span><span class="op">)</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>
</div>
<div class="section level2">
<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>
<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>
<dd><p>Angle for x-axis text.</p></dd>
<dt id="arg-axis-text-x-vjust">axis_text_x_vjust<a class="anchor" aria-label="anchor" href="#arg-axis-text-x-vjust"></a></dt>
<dd><p>Vertical justification for x-axis text.</p></dd>
<dt id="arg-axis-text-x-hjust">axis_text_x_hjust<a class="anchor" aria-label="anchor" href="#arg-axis-text-x-hjust"></a></dt>
<dd><p>Horizontal justification for x-axis text.</p></dd>
<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 "Carlito".</p></dd>
<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 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>
<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>
<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>
<dd><p>Title horizontal justification. Default to NULL. Use 0.5 to center the title.</p></dd>
<dt id="arg-title-position-to-plot">title_position_to_plot<a class="anchor" aria-label="anchor" href="#arg-title-position-to-plot"></a></dt>
<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>
<dd><p>The size of all text other than the title, subtitle and caption. Defaults to 10.</p></dd>
<dt id="arg-text-color">text_color<a class="anchor" aria-label="anchor" href="#arg-text-color"></a></dt>
<dd><p>Text color.</p></dd>
<dt id="arg-text-font-face">text_font_face<a class="anchor" aria-label="anchor" href="#arg-text-font-face"></a></dt>
<dd><p>Text font face. Default to "bold". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-panel-background-color">panel_background_color<a class="anchor" aria-label="anchor" href="#arg-panel-background-color"></a></dt>
<dd><p>The color for the panel background color. Default to white.</p></dd>
<dt id="arg-panel-border">panel_border<a class="anchor" aria-label="anchor" href="#arg-panel-border"></a></dt>
<dd><p>Boolean. Plot a panel border? Default to FALSE.</p></dd>
<dt id="arg-panel-border-color">panel_border_color<a class="anchor" aria-label="anchor" href="#arg-panel-border-color"></a></dt>
<dd><p>A color. Default to REACH main grey.</p></dd>
<dt id="arg-legend-position">legend_position<a class="anchor" aria-label="anchor" href="#arg-legend-position"></a></dt>
<dd><p>Position of the legend; Default to "right". Can take "right", "left", "top", "bottom" or "none".</p></dd>
<dt id="arg-legend-direction">legend_direction<a class="anchor" aria-label="anchor" href="#arg-legend-direction"></a></dt>
<dd><p>Direction of the legend. Default to "vertical". Can take "vertical" or "horizontal".</p></dd>
<dt id="arg-legend-justification">legend_justification<a class="anchor" aria-label="anchor" href="#arg-legend-justification"></a></dt>
<dd><p>In addition to legend_direction, place the legend. Can take "left", "bottom", "center", "right", "top".</p></dd>
<dt id="arg-legend-reverse">legend_reverse<a class="anchor" aria-label="anchor" href="#arg-legend-reverse"></a></dt>
<dd><p>Reverse the color in the guide? Default to TRUE.</p></dd>
<dt id="arg-legend-title-size">legend_title_size<a class="anchor" aria-label="anchor" href="#arg-legend-title-size"></a></dt>
<dd><p>Legend title size.</p></dd>
<dt id="arg-legend-title-color">legend_title_color<a class="anchor" aria-label="anchor" href="#arg-legend-title-color"></a></dt>
<dd><p>Legend title color.</p></dd>
<dt id="arg-legend-title-font-face">legend_title_font_face<a class="anchor" aria-label="anchor" href="#arg-legend-title-font-face"></a></dt>
<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>
<dd><p>Legend text size.</p></dd>
<dt id="arg-legend-text-color">legend_text_color<a class="anchor" aria-label="anchor" href="#arg-legend-text-color"></a></dt>
<dd><p>Legend text color.</p></dd>
<dt id="arg-legend-text-font-face">legend_text_font_face<a class="anchor" aria-label="anchor" href="#arg-legend-text-font-face"></a></dt>
<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>
<dd><p>Boolean. Do you need x-axis?</p></dd>
<dt id="arg-axis-y">axis_y<a class="anchor" aria-label="anchor" href="#arg-axis-y"></a></dt>
<dd><p>Boolean. Do you need y-axis?</p></dd>
<dt id="arg-axis-text-x">axis_text_x<a class="anchor" aria-label="anchor" href="#arg-axis-text-x"></a></dt>
<dd><p>Boolean. Do you need the text for the x-axis?</p></dd>
<dt id="arg-axis-line-x">axis_line_x<a class="anchor" aria-label="anchor" href="#arg-axis-line-x"></a></dt>
<dd><p>Boolean. Do you need the line for the x-axis?</p></dd>
<dt id="arg-axis-ticks-x">axis_ticks_x<a class="anchor" aria-label="anchor" href="#arg-axis-ticks-x"></a></dt>
<dd><p>Boolean. Do you need the line for the x-axis?</p></dd>
<dt id="arg-axis-text-y">axis_text_y<a class="anchor" aria-label="anchor" href="#arg-axis-text-y"></a></dt>
<dd><p>Boolean. Do you need the text for the y-axis?</p></dd>
<dt id="arg-axis-line-y">axis_line_y<a class="anchor" aria-label="anchor" href="#arg-axis-line-y"></a></dt>
<dd><p>Boolean. Do you need the line for the y-axis?</p></dd>
<dt id="arg-axis-ticks-y">axis_ticks_y<a class="anchor" aria-label="anchor" href="#arg-axis-ticks-y"></a></dt>
<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>
<dd><p>Axis text size.</p></dd>
<dt id="arg-axis-text-color">axis_text_color<a class="anchor" aria-label="anchor" href="#arg-axis-text-color"></a></dt>
<dd><p>Axis text color.</p></dd>
<dt id="arg-axis-text-font-face">axis_text_font_face<a class="anchor" aria-label="anchor" href="#arg-axis-text-font-face"></a></dt>
<dd><p>Axis text font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-axis-title-size">axis_title_size<a class="anchor" aria-label="anchor" href="#arg-axis-title-size"></a></dt>
<dd><p>Axis title size.</p></dd>
<dt id="arg-axis-title-color">axis_title_color<a class="anchor" aria-label="anchor" href="#arg-axis-title-color"></a></dt>
<dd><p>Axis title color.</p></dd>
<dt id="arg-axis-title-font-face">axis_title_font_face<a class="anchor" aria-label="anchor" href="#arg-axis-title-font-face"></a></dt>
<dd><p>Axis title font face. Default to "plain". Font face ("plain", "italic", "bold", "bold.italic").</p></dd>
<dt id="arg-grid-major-x">grid_major_x<a class="anchor" aria-label="anchor" href="#arg-grid-major-x"></a></dt>
<dd><p>Boolean. Do you need major grid lines for x-axis?</p></dd>
<dt id="arg-grid-major-y">grid_major_y<a class="anchor" aria-label="anchor" href="#arg-grid-major-y"></a></dt>
<dd><p>Boolean. Do you need major grid lines for y-axis?</p></dd>
<dt id="arg-grid-major-color">grid_major_color<a class="anchor" aria-label="anchor" href="#arg-grid-major-color"></a></dt>
<dd><p>Major grid lines color.</p></dd>
<dt id="arg-grid-major-x-size">grid_major_x_size<a class="anchor" aria-label="anchor" href="#arg-grid-major-x-size"></a></dt>
<dd><p>Major X line size.</p></dd>
<dt id="arg-grid-major-y-size">grid_major_y_size<a class="anchor" aria-label="anchor" href="#arg-grid-major-y-size"></a></dt>
<dd><p>Major Y line size.</p></dd>
<dt id="arg-grid-minor-x">grid_minor_x<a class="anchor" aria-label="anchor" href="#arg-grid-minor-x"></a></dt>
<dd><p>Boolean. Do you need minor grid lines for x-axis?</p></dd>
<dt id="arg-grid-minor-y">grid_minor_y<a class="anchor" aria-label="anchor" href="#arg-grid-minor-y"></a></dt>
<dd><p>Boolean. Do you need minor grid lines for y-axis?</p></dd>
<dt id="arg-grid-minor-color">grid_minor_color<a class="anchor" aria-label="anchor" href="#arg-grid-minor-color"></a></dt>
<dd><p>Minor grid lines color.</p></dd>
<dt id="arg-grid-minor-x-size">grid_minor_x_size<a class="anchor" aria-label="anchor" href="#arg-grid-minor-x-size"></a></dt>
<dd><p>Minor X line size.</p></dd>
<dt id="arg-grid-minor-y-size">grid_minor_y_size<a class="anchor" aria-label="anchor" href="#arg-grid-minor-y-size"></a></dt>
<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>
<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>
<dd><p>Additional arguments passed to [ggplot2::theme()].</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>A custom theme object.</p>
<p>A ggplot2 theme object</p>
<p>A custom theme 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="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>
</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,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

@ -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

@ -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

@ -0,0 +1,73 @@
<!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>visualizeR: What a color! What a viz! — visualizeR-package • 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="visualizeR: What a color! What a viz! — visualizeR-package"><meta name="description" content="
It basically provides colors as hex codes, color palettes, and some viz functions (graphs and maps)."><meta property="og:description" content="
It basically provides colors as hex codes, color palettes, and some viz functions (graphs and maps)."><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>visualizeR: What a color! What a viz!</h1>
<small class="dont-index">Source: <a href="https://github.com/gnoblet/visualizeR/blob/main/R/visualizeR-package.R" class="external-link"><code>R/visualizeR-package.R</code></a></small>
<div class="d-none name"><code>visualizeR-package.Rd</code></div>
</div>
<div class="ref-description section level2">
<p></p>
<p>It basically provides colors as hex codes, color palettes, and some viz functions (graphs and maps).</p>
</div>
<div class="section level2">
<h2 id="see-also">See also<a class="anchor" aria-label="anchor" href="#see-also"></a></h2>
<div class="dont-index"><p>Useful links:</p><ul><li><p><a href="https://github.com/gnoblet/visualizeR" class="external-link">https://github.com/gnoblet/visualizeR</a></p></li>
<li><p><a href="https://gnoblet.github.io/visualizeR/">https://gnoblet.github.io/visualizeR/</a></p></li>
</ul></div>
</div>
<div class="section level2">
<h2 id="author">Author<a class="anchor" aria-label="anchor" href="#author"></a></h2>
<p><strong>Maintainer</strong>: Noblet Guillaume <a href="mailto:gnoblet@zaclys.net">gnoblet@zaclys.net</a></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,8 @@
<html>
<head>
<meta http-equiv="refresh" content="0;URL=https://gnoblet.github.io/visualizeR/reference/visualizeR-package.html" />
<meta name="robots" content="noindex">
<link rel="canonical" href="https://gnoblet.github.io/visualizeR/reference/visualizeR-package.html">
</head>
</html>

1
search.json Normal file

File diff suppressed because one or more lines are too long

23
sitemap.xml Normal file
View file

@ -0,0 +1,23 @@
<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/LICENSE.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/news/index.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/bar.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/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/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_gen.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/point.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/reorder_by.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/scale_color_visualizer_discrete.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/theme_default.html</loc></url>
<url><loc>https://gnoblet.github.io/visualizeR/reference/visualizeR-package.html</loc></url>
</urlset>