visualizeR/reference/theme_default.html

467 lines
30 KiB
HTML

<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Custom Theme for Bar Charts — theme_bar • visualizeR</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Custom Theme for Bar Charts — theme_bar"><meta name="description" content="Give some reach colors and fonts to a ggplot.
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>