apexcharter/reference/add-line.html

206 lines
62 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"><meta name="description" content="Add a line to an existing chart (bar, scatter and line types supported).
On scatter charts you can also add a smooth line."><title>Add a line to a chart — add-line • apexcharter</title><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.1.0/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.1.0/bootstrap.bundle.min.js"></script><link href="../deps/_Poppins-0.4.0/font.css" rel="stylesheet"><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v1.0.1/dist/bootstrap-toc.min.js"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Add a line to a chart — add-line"><meta property="og:description" content="Add a line to an existing chart (bar, scatter and line types supported).
On scatter charts you can also add a smooth line."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]--><!-- dependencies from examples --><script src="libs/htmlwidgets-1.5.4/htmlwidgets.js"></script><script src="libs/apexcharter-binding-0.3.0.9100/apexcharter.js"></script></head><body>
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
<nav class="navbar fixed-top navbar-dark navbar-expand-lg bg-primary"><div class="container">
<a class="navbar-brand me-2" href="../index.html">apexcharter</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">0.3.0.9100</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-2">
<ul class="navbar-nav me-auto"><li class="nav-item">
<a class="nav-link" href="../articles/apexcharter.html">Get started</a>
</li>
<li class="active nav-item">
<a class="nav-link" href="../reference/index.html">Reference</a>
</li>
<li class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
<a class="dropdown-item" href="../articles/extra/advanced-configuration.html">Advanced configuration examples</a>
<a class="dropdown-item" href="../articles/extra/chart-options.html">Customize chart options</a>
<a class="dropdown-item" href="../articles/extra/facets.html">Create grid of charts</a>
<a class="dropdown-item" href="../articles/extra/shiny-integration.html">Use in Shiny application</a>
<a class="dropdown-item" href="../articles/extra/spark-box.html">Create boxes with sparklines</a>
<a class="dropdown-item" href="../articles/extra/sync-charts.html">Synchronize charts with each other</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="../news/index.html">Changelog</a>
</li>
</ul><form class="form-inline my-2 my-lg-0" role="search">
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
<ul class="navbar-nav"><li class="nav-item">
<a class="external-link nav-link" href="https://github.com/dreamRs/apexcharter/" aria-label="github">
<span class="fab 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="" class="logo" alt=""><h1>Add a line to a chart</h1>
<small class="dont-index">Source: <a href="https://github.com/dreamRs/apexcharter/blob/HEAD/R/mixed-charts.R" class="external-link"><code>R/mixed-charts.R</code></a></small>
<div class="d-none name"><code>add-line.Rd</code></div>
</div>
<div class="ref-description section level2">
<p>Add a line to an existing chart (bar, scatter and line types supported).
On scatter charts you can also add a smooth line.</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 class="fu">add_line</span><span class="op">(</span>
<span class="va">ax</span>,
<span class="va">mapping</span>,
data <span class="op">=</span> <span class="cn">NULL</span>,
type <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">"line"</span>, <span class="st">"spline"</span><span class="op">)</span>,
serie_name <span class="op">=</span> <span class="cn">NULL</span>
<span class="op">)</span>
<span class="fu">add_smooth_line</span><span class="op">(</span>
<span class="va">ax</span>,
formula <span class="op">=</span> <span class="va">y</span> <span class="op">~</span> <span class="va">x</span>,
model <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">"lm"</span>, <span class="st">"loess"</span><span class="op">)</span>,
n <span class="op">=</span> <span class="fl">100</span>,
<span class="va">...</span>,
type <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">"line"</span>, <span class="st">"spline"</span><span class="op">)</span>,
serie_name <span class="op">=</span> <span class="cn">NULL</span>
<span class="op">)</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>ax</dt>
<dd><p>An <code><a href="apexchart.html">apexchart()</a></code> <code>htmlwidget</code> object.</p></dd>
<dt>mapping</dt>
<dd><p>Default list of aesthetic mappings to use for chart.</p></dd>
<dt>data</dt>
<dd><p>A <code>data.frame</code> to use to add a line, if <code>NULL</code> (default),
the <code>data.frame</code> provided in <code><a href="apex.html">apex()</a></code> will be used.</p></dd>
<dt>type</dt>
<dd><p>Type of line.</p></dd>
<dt>serie_name</dt>
<dd><p>Name for the serie displayed in tooltip and legend.</p></dd>
<dt>formula</dt>
<dd><p>Formula passed to the <code>method</code>, default to <code>y ~ x</code> from main aesthetics.</p></dd>
<dt>model</dt>
<dd><p>Model to use between <code><a href="https://rdrr.io/r/stats/lm.html" class="external-link">lm</a></code> or <code><a href="https://rdrr.io/r/stats/loess.html" class="external-link">loess</a></code>.</p></dd>
<dt>n</dt>
<dd><p>Number of points used for predictions.</p></dd>
<dt>...</dt>
<dd><p>Arguments passed to <code>model</code>.</p></dd>
</dl></div>
<div class="section level2">
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
<p>An <code><a href="apexchart.html">apexchart()</a></code><code>htmlwidget</code> 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 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/dreamRs/apexcharter" class="external-link">apexcharter</a></span><span class="op">)</span></span>
<span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># Bar ----</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="fu"><a href="https://rdrr.io/r/utils/data.html" class="external-link">data</a></span><span class="op">(</span><span class="st">"climate_paris"</span><span class="op">)</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># Add a line on a column's chart</span></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">climate_paris</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">month</span>, <span class="va">precipitation</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"column"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_line</span><span class="op">(</span><span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">month</span>, <span class="va">temperature</span><span class="op">)</span><span class="op">)</span></span>
<div id="htmlwidget-4550cd831ac896430207" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-4550cd831ac896430207">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"precipitation","type":"bar","data":[{"x":"Jan","y":53.7},{"x":"Feb","y":43.7},{"x":"Mar","y":48.5},{"x":"Apr","y":53},{"x":"May","y":65},{"x":"Jun","y":54.6},{"x":"Jul","y":63.2},{"x":"Aug","y":43},{"x":"Sep","y":54.7},{"x":"Oct","y":59.7},{"x":"Nov","y":52},{"x":"Dec","y":58.7}]},{"name":"temperature","type":"line","data":[{"x":"Jan","y":4.7},{"x":"Feb","y":5.5},{"x":"Mar","y":8.4},{"x":"Apr","y":10.8},{"x":"May","y":14.8},{"x":"Jun","y":17.6},{"x":"Jul","y":20},{"x":"Aug","y":20},{"x":"Sep","y":16.7},{"x":"Oct","y":12.6},{"x":"Nov","y":7.9},{"x":"Dec","y":5.7}]}],"dataLabels":{"enabled":false},"plotOptions":{"bar":{"horizontal":false}},"tooltip":{"shared":true,"intersect":false,"followCursor":true},"yaxis":{"labels":{"style":{"colors":"#848484"}}},"xaxis":{"labels":{"style":{"colors":"#848484"}}},"stroke":{"width":[0,4],"curve":"straight"}},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":"Apr","max":"Sep"},"type":"column","mixed_type":"bar"},"evals":[],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"><span class="co"># Add secondary axis</span></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">climate_paris</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">month</span>, <span class="va">precipitation</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"column"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_line</span><span class="op">(</span><span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">month</span>, <span class="va">temperature</span><span class="op">)</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span></span>
<span class="r-in"> <span class="fu"><a href="ax_yaxis.html">ax_yaxis</a></span><span class="op">(</span></span>
<span class="r-in"> title <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span>text <span class="op">=</span> <span class="st">"Precipitation (in mm)"</span><span class="op">)</span></span>
<span class="r-in"> <span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu"><a href="ax_yaxis2.html">ax_yaxis2</a></span><span class="op">(</span></span>
<span class="r-in"> opposite <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span class="r-in"> decimalsInFloat <span class="op">=</span> <span class="fl">0</span>,</span>
<span class="r-in"> title <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span>text <span class="op">=</span> <span class="st">"Temperature (in degree celsius)"</span><span class="op">)</span></span>
<span class="r-in"> <span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu"><a href="ax_dataLabels.html">ax_dataLabels</a></span><span class="op">(</span></span>
<span class="r-in"> enabled <span class="op">=</span> <span class="cn">TRUE</span>, enabledOnSeries <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fl">1</span><span class="op">)</span></span>
<span class="r-in"> <span class="op">)</span></span>
<div id="htmlwidget-c87e8c980d165833b97c" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-c87e8c980d165833b97c">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"precipitation","type":"bar","data":[{"x":"Jan","y":53.7},{"x":"Feb","y":43.7},{"x":"Mar","y":48.5},{"x":"Apr","y":53},{"x":"May","y":65},{"x":"Jun","y":54.6},{"x":"Jul","y":63.2},{"x":"Aug","y":43},{"x":"Sep","y":54.7},{"x":"Oct","y":59.7},{"x":"Nov","y":52},{"x":"Dec","y":58.7}]},{"name":"temperature","type":"line","data":[{"x":"Jan","y":4.7},{"x":"Feb","y":5.5},{"x":"Mar","y":8.4},{"x":"Apr","y":10.8},{"x":"May","y":14.8},{"x":"Jun","y":17.6},{"x":"Jul","y":20},{"x":"Aug","y":20},{"x":"Sep","y":16.7},{"x":"Oct","y":12.6},{"x":"Nov","y":7.9},{"x":"Dec","y":5.7}]}],"dataLabels":{"enabled":true,"enabledOnSeries":[1]},"plotOptions":{"bar":{"horizontal":false}},"tooltip":{"shared":true,"intersect":false,"followCursor":true},"xaxis":{"labels":{"style":{"colors":"#848484"}}},"stroke":{"width":[0,4],"curve":"straight"},"yaxis":[{"labels":{"style":{"colors":"#848484"}},"title":{"text":"Precipitation (in mm)"}},{"opposite":true,"decimalsInFloat":0,"title":{"text":"Temperature (in degree celsius)"}}]},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":"Apr","max":"Sep"},"type":"column","mixed_type":"bar"},"evals":[],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># Scatter ----</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># add smooth line on scatter plot</span></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">cars</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">speed</span>, <span class="va">dist</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"scatter"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_line</span><span class="op">(</span><span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">x</span>, <span class="va">y</span><span class="op">)</span>, data <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/stats/lowess.html" class="external-link">lowess</a></span><span class="op">(</span><span class="va">cars</span><span class="op">)</span>, serie_name <span class="op">=</span> <span class="st">"lowess"</span><span class="op">)</span></span>
<div id="htmlwidget-bce552dc3a26053669ac" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-bce552dc3a26053669ac">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"dist","type":"scatter","data":[{"x":4,"y":2},{"x":4,"y":10},{"x":7,"y":4},{"x":7,"y":22},{"x":8,"y":16},{"x":9,"y":10},{"x":10,"y":18},{"x":10,"y":26},{"x":10,"y":34},{"x":11,"y":17},{"x":11,"y":28},{"x":12,"y":14},{"x":12,"y":20},{"x":12,"y":24},{"x":12,"y":28},{"x":13,"y":26},{"x":13,"y":34},{"x":13,"y":34},{"x":13,"y":46},{"x":14,"y":26},{"x":14,"y":36},{"x":14,"y":60},{"x":14,"y":80},{"x":15,"y":20},{"x":15,"y":26},{"x":15,"y":54},{"x":16,"y":32},{"x":16,"y":40},{"x":17,"y":32},{"x":17,"y":40},{"x":17,"y":50},{"x":18,"y":42},{"x":18,"y":56},{"x":18,"y":76},{"x":18,"y":84},{"x":19,"y":36},{"x":19,"y":46},{"x":19,"y":68},{"x":20,"y":32},{"x":20,"y":48},{"x":20,"y":52},{"x":20,"y":56},{"x":20,"y":64},{"x":22,"y":66},{"x":23,"y":54},{"x":24,"y":70},{"x":24,"y":92},{"x":24,"y":93},{"x":24,"y":120},{"x":25,"y":85}]},{"name":"lowess","type":"line","data":[{"x":4,"y":4.96545927718688},{"x":4,"y":4.96545927718688},{"x":7,"y":13.1244950396664},{"x":7,"y":13.1244950396664},{"x":8,"y":15.8586333820983},{"x":9,"y":18.5796905142177},{"x":10,"y":21.2803125785285},{"x":10,"y":21.2803125785285},{"x":10,"y":21.2803125785285},{"x":11,"y":24.1292771489265},{"x":11,"y":24.1292771489265},{"x":12,"y":27.1195485506035},{"x":12,"y":27.1195485506035},{"x":12,"y":27.1195485506035},{"x":12,"y":27.1195485506035},{"x":13,"y":30.027276331154},{"x":13,"y":30.027276331154},{"x":13,"y":30.027276331154},{"x":13,"y":30.027276331154},{"x":14,"y":32.9625061361576},{"x":14,"y":32.9625061361576},{"x":14,"y":32.9625061361576},{"x":14,"y":32.9625061361576},{"x":15,"y":36.7577283416497},{"x":15,"y":36.7577283416497},{"x":15,"y":36.7577283416497},{"x":16,"y":40.4350745619887},{"x":16,"y":40.4350745619887},{"x":17,"y":43.4634917818176},{"x":17,"y":43.4634917818176},{"x":17,"y":43.4634917818176},{"x":18,"y":46.885478946024},{"x":18,"y":46.885478946024},{"x":18,"y":46.885478946024},{"x":18,"y":46.885478946024},{"x":19,"y":50.7931517254206},{"x":19,"y":50.7931517254206},{"x":19,"y":50.7931517254206},{"x":20,"y":56.4912240928772},{"x":20,"y":56.4912240928772},{"x":20,"y":56.4912240928772},{"x":20,"y":56.4912240928772},{"x":20,"y":56.4912240928772},{"x":22,"y":67.5858242314313},{"x":23,"y":73.07969526937},{"x":24,"y":78.6431635543999},{"x":24,"y":78.6431635543999},{"x":24,"y":78.6431635543999},{"x":24,"y":78.6431635543999},{"x":25,"y":84.3286980968342}]}],"dataLabels":{"enabled":false},"xaxis":{"type":"numeric","min":0,"max":25,"tickAmount":5,"crosshairs":{"show":true,"stroke":{"dashArray":0}},"labels":{"style":{"colors":"#848484"}}},"yaxis":{"min":0,"max":120,"tickAmount":6,"labels":{"formatter":"function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}","style":{"colors":"#848484"}},"tooltip":{"enabled":true}},"grid":{"xaxis":{"lines":{"show":true}}},"markers":{"size":[6,0]},"stroke":{"curve":"straight"}},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":4,"max":25},"type":"scatter","mixed_type":"scatter"},"evals":["ax_opts.yaxis.labels.formatter"],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># or directly</span></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">cars</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">speed</span>, <span class="va">dist</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"scatter"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_smooth_line</span><span class="op">(</span><span class="op">)</span></span>
<div id="htmlwidget-858fc80d1204d509122b" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-858fc80d1204d509122b">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"dist","type":"scatter","data":[{"x":4,"y":2},{"x":4,"y":10},{"x":7,"y":4},{"x":7,"y":22},{"x":8,"y":16},{"x":9,"y":10},{"x":10,"y":18},{"x":10,"y":26},{"x":10,"y":34},{"x":11,"y":17},{"x":11,"y":28},{"x":12,"y":14},{"x":12,"y":20},{"x":12,"y":24},{"x":12,"y":28},{"x":13,"y":26},{"x":13,"y":34},{"x":13,"y":34},{"x":13,"y":46},{"x":14,"y":26},{"x":14,"y":36},{"x":14,"y":60},{"x":14,"y":80},{"x":15,"y":20},{"x":15,"y":26},{"x":15,"y":54},{"x":16,"y":32},{"x":16,"y":40},{"x":17,"y":32},{"x":17,"y":40},{"x":17,"y":50},{"x":18,"y":42},{"x":18,"y":56},{"x":18,"y":76},{"x":18,"y":84},{"x":19,"y":36},{"x":19,"y":46},{"x":19,"y":68},{"x":20,"y":32},{"x":20,"y":48},{"x":20,"y":52},{"x":20,"y":56},{"x":20,"y":64},{"x":22,"y":66},{"x":23,"y":54},{"x":24,"y":70},{"x":24,"y":92},{"x":24,"y":93},{"x":24,"y":120},{"x":25,"y":85}]},{"name":"smooth","type":"line","data":[{"x":4,"y":-1.84945985401454},{"x":4.21212121212121,"y":-1.01531254147307},{"x":4.42424242424242,"y":-0.181165228931594},{"x":4.63636363636364,"y":0.652982083609881},{"x":4.84848484848485,"y":1.48712939615135},{"x":5.06060606060606,"y":2.32127670869282},{"x":5.27272727272727,"y":3.1554240212343},{"x":5.48484848484848,"y":3.98957133377577},{"x":5.6969696969697,"y":4.82371864631724},{"x":5.90909090909091,"y":5.65786595885871},{"x":6.12121212121212,"y":6.49201327140019},{"x":6.33333333333333,"y":7.32616058394166},{"x":6.54545454545454,"y":8.16030789648313},{"x":6.75757575757576,"y":8.9944552090246},{"x":6.96969696969697,"y":9.82860252156608},{"x":7.18181818181818,"y":10.6627498341075},{"x":7.39393939393939,"y":11.496897146649},{"x":7.60606060606061,"y":12.3310444591905},{"x":7.81818181818182,"y":13.165191771732},{"x":8.03030303030303,"y":13.9993390842734},{"x":8.24242424242424,"y":14.8334863968149},{"x":8.45454545454546,"y":15.6676337093564},{"x":8.66666666666667,"y":16.5017810218979},{"x":8.87878787878788,"y":17.3359283344393},{"x":9.09090909090909,"y":18.1700756469808},{"x":9.3030303030303,"y":19.0042229595223},{"x":9.51515151515152,"y":19.8383702720637},{"x":9.72727272727273,"y":20.6725175846052},{"x":9.93939393939394,"y":21.5066648971467},{"x":10.1515151515152,"y":22.3408122096882},{"x":10.3636363636364,"y":23.1749595222296},{"x":10.5757575757576,"y":24.0091068347711},{"x":10.7878787878788,"y":24.8432541473126},{"x":11,"y":25.6774014598541},{"x":11.2121212121212,"y":26.5115487723955},{"x":11.4242424242424,"y":27.345696084937},{"x":11.6363636363636,"y":28.1798433974785},{"x":11.8484848484848,"y":29.0139907100199},{"x":12.0606060606061,"y":29.8481380225614},{"x":12.2727272727273,"y":30.6822853351029},{"x":12.4848484848485,"y":31.5164326476444},{"x":12.6969696969697,"y":32.3505799601858},{"x":12.9090909090909,"y":33.1847272727273},{"x":13.1212121212121,"y":34.0188745852688},{"x":13.3333333333333,"y":34.8530218978103},{"x":13.5454545454545,"y":35.6871692103517},{"x":13.7575757575758,"y":36.5213165228932},{"x":13.969696969697,"y":37.3554638354347},{"x":14.1818181818182,"y":38.1896111479761},{"x":14.3939393939394,"y":39.0237584605176},{"x":14.6060606060606,"y":39.8579057730591},{"x":14.8181818181818,"y":40.6920530856006},{"x":15.030303030303,"y":41.526200398142},{"x":15.2424242424242,"y":42.3603477106835},{"x":15.4545454545455,"y":43.194495023225},{"x":15.6666666666667,"y":44.0286423357664},{"x":15.8787878787879,"y":44.8627896483079},{"x":16.0909090909091,"y":45.6969369608494},{"x":16.3030303030303,"y":46.5310842733909},{"x":16.5151515151515,"y":47.3652315859323},{"x":16.7272727272727,"y":48.1993788984738},{"x":16.9393939393939,"y":49.0335262110153},{"x":17.1515151515152,"y":49.8676735235568},{"x":17.3636363636364,"y":50.7018208360982},{"x":17.5757575757576,"y":51.5359681486397},{"x":17.7878787878788,"y":52.3701154611812},{"x":18,"y":53.2042627737226},{"x":18.2121212121212,"y":54.0384100862641},{"x":18.4242424242424,"y":54.8725573988056},{"x":18.6363636363636,"y":55.7067047113471},{"x":18.8484848484849,"y":56.5408520238885},{"x":19.0606060606061,"y":57.37499933643},{"x":19.2727272727273,"y":58.2091466489715},{"x":19.4848484848485,"y":59.043293961513},{"x":19.6969696969697,"y":59.8774412740544},{"x":19.9090909090909,"y":60.7115885865959},{"x":20.1212121212121,"y":61.5457358991374},{"x":20.3333333333333,"y":62.3798832116788},{"x":20.5454545454545,"y":63.2140305242203},{"x":20.7575757575758,"y":64.0481778367618},{"x":20.969696969697,"y":64.8823251493033},{"x":21.1818181818182,"y":65.7164724618447},{"x":21.3939393939394,"y":66.5506197743862},{"x":21.6060606060606,"y":67.3847670869277},{"x":21.8181818181818,"y":68.2189143994692},{"x":22.030303030303,"y":69.0530617120106},{"x":22.2424242424242,"y":69.8872090245521},{"x":22.4545454545455,"y":70.7213563370936},{"x":22.6666666666667,"y":71.555503649635},{"x":22.8787878787879,"y":72.3896509621765},{"x":23.0909090909091,"y":73.223798274718},{"x":23.3030303030303,"y":74.0579455872595},{"x":23.5151515151515,"y":74.8920928998009},{"x":23.7272727272727,"y":75.7262402123424},{"x":23.9393939393939,"y":76.5603875248839},{"x":24.1515151515152,"y":77.3945348374254},{"x":24.3636363636364,"y":78.2286821499668},{"x":24.5757575757576,"y":79.0628294625083},{"x":24.7878787878788,"y":79.8969767750498},{"x":25,"y":80.7311240875912}]}],"dataLabels":{"enabled":false},"xaxis":{"type":"numeric","min":0,"max":25,"tickAmount":5,"crosshairs":{"show":true,"stroke":{"dashArray":0}},"labels":{"style":{"colors":"#848484"}}},"yaxis":{"min":0,"max":120,"tickAmount":6,"labels":{"formatter":"function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}","style":{"colors":"#848484"}},"tooltip":{"enabled":true}},"grid":{"xaxis":{"lines":{"show":true}}},"markers":{"size":[6,0]},"stroke":{"curve":"straight"}},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":4,"max":25},"type":"scatter","mixed_type":"scatter"},"evals":["ax_opts.yaxis.labels.formatter"],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">cars</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">speed</span>, <span class="va">dist</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"scatter"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_smooth_line</span><span class="op">(</span>model <span class="op">=</span> <span class="st">"loess"</span>, span <span class="op">=</span> <span class="fl">1</span><span class="op">)</span></span>
<div id="htmlwidget-c050b0c414646dd9c844" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-c050b0c414646dd9c844">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"dist","type":"scatter","data":[{"x":4,"y":2},{"x":4,"y":10},{"x":7,"y":4},{"x":7,"y":22},{"x":8,"y":16},{"x":9,"y":10},{"x":10,"y":18},{"x":10,"y":26},{"x":10,"y":34},{"x":11,"y":17},{"x":11,"y":28},{"x":12,"y":14},{"x":12,"y":20},{"x":12,"y":24},{"x":12,"y":28},{"x":13,"y":26},{"x":13,"y":34},{"x":13,"y":34},{"x":13,"y":46},{"x":14,"y":26},{"x":14,"y":36},{"x":14,"y":60},{"x":14,"y":80},{"x":15,"y":20},{"x":15,"y":26},{"x":15,"y":54},{"x":16,"y":32},{"x":16,"y":40},{"x":17,"y":32},{"x":17,"y":40},{"x":17,"y":50},{"x":18,"y":42},{"x":18,"y":56},{"x":18,"y":76},{"x":18,"y":84},{"x":19,"y":36},{"x":19,"y":46},{"x":19,"y":68},{"x":20,"y":32},{"x":20,"y":48},{"x":20,"y":52},{"x":20,"y":56},{"x":20,"y":64},{"x":22,"y":66},{"x":23,"y":54},{"x":24,"y":70},{"x":24,"y":92},{"x":24,"y":93},{"x":24,"y":120},{"x":25,"y":85}]},{"name":"smooth","type":"line","data":[{"x":4,"y":4.0685016540788},{"x":4.21212121212121,"y":4.68877987143089},{"x":4.42424242424242,"y":5.31231787956292},{"x":4.63636363636364,"y":5.93911334291864},{"x":4.84848484848485,"y":6.56916392594181},{"x":5.06060606060606,"y":7.2024672930762},{"x":5.27272727272727,"y":7.83902110876555},{"x":5.48484848484848,"y":8.47882303745364},{"x":5.6969696969697,"y":9.12187074358422},{"x":5.90909090909091,"y":9.76816189160105},{"x":6.12121212121212,"y":10.4176941459479},{"x":6.33333333333333,"y":11.0704651710685},{"x":6.54545454545454,"y":11.7264726314066},{"x":6.75757575757576,"y":12.3857141914061},{"x":6.96969696969697,"y":13.0481875155105},{"x":7.18181818181818,"y":13.7138902681638},{"x":7.39393939393939,"y":14.3828201138097},{"x":7.60606060606061,"y":15.0549747168919},{"x":7.81818181818182,"y":15.7303517418542},{"x":8.03030303030303,"y":16.4089488531403},{"x":8.24242424242424,"y":17.090763715194},{"x":8.45454545454546,"y":17.7757939924591},{"x":8.66666666666667,"y":18.4640373493794},{"x":8.87878787878788,"y":19.1554914503985},{"x":9.09090909090909,"y":19.8501539599603},{"x":9.3030303030303,"y":20.5480225425084},{"x":9.51515151515152,"y":21.2490948624868},{"x":9.72727272727273,"y":21.9533685843391},{"x":9.93939393939394,"y":22.660841372509},{"x":10.1515151515152,"y":23.3726100962513},{"x":10.3636363636364,"y":24.0911418356318},{"x":10.5757575757576,"y":24.8154735098079},{"x":10.7878787878788,"y":25.5444504876764},{"x":11,"y":26.2769181381343},{"x":11.2121212121212,"y":27.0117218300786},{"x":11.4242424242424,"y":27.7477069324064},{"x":11.6363636363636,"y":28.4837188140145},{"x":11.8484848484848,"y":29.2186028437999},{"x":12.0606060606061,"y":29.9526531565294},{"x":12.2727272727273,"y":30.7082273074336},{"x":12.4848484848485,"y":31.4883136286001},{"x":12.6969696969697,"y":32.2863891762583},{"x":12.9090909090909,"y":33.0959310066377},{"x":13.1212121212121,"y":33.9104161759679},{"x":13.3333333333333,"y":34.7233217404784},{"x":13.5454545454545,"y":35.5281247563986},{"x":13.7575757575758,"y":36.3183022799581},{"x":13.969696969697,"y":37.0873313673863},{"x":14.1818181818182,"y":37.7950490636592},{"x":14.3939393939394,"y":38.4155445575487},{"x":14.6060606060606,"y":39.006571620158},{"x":14.8181818181818,"y":39.6270410310323},{"x":15.030303030303,"y":40.3335517447854},{"x":15.2424242424242,"y":41.0357020846508},{"x":15.4545454545455,"y":41.6757534926082},{"x":15.6666666666667,"y":42.2745293444294},{"x":15.8787878787879,"y":42.8528530158861},{"x":16.0909090909091,"y":43.4315478827501},{"x":16.3030303030303,"y":44.031437320793},{"x":16.5151515151515,"y":44.6733447057866},{"x":16.7272727272727,"y":45.3780934135027},{"x":16.9393939393939,"y":46.1665068197129},{"x":17.1515151515152,"y":47.0290104989985},{"x":17.3636363636364,"y":47.8943741260785},{"x":17.5757575757576,"y":48.7621326144198},{"x":17.7878787878788,"y":49.6364579765197},{"x":18,"y":50.5215222248755},{"x":18.2121212121212,"y":51.4214973719844},{"x":18.4242424242424,"y":52.3405554303438},{"x":18.6363636363636,"y":53.2828684124508},{"x":18.8484848484849,"y":54.2526083308027},{"x":19.0606060606061,"y":55.252982143021},{"x":19.2727272727273,"y":56.2705630673721},{"x":19.4848484848485,"y":57.3003312794199},{"x":19.6969696969697,"y":58.3430048447321},{"x":19.9090909090909,"y":59.3993018288762},{"x":20.1212121212121,"y":60.4699402974199},{"x":20.3333333333333,"y":61.5556383159307},{"x":20.5454545454545,"y":62.6571139499763},{"x":20.7575757575758,"y":63.7750852651242},{"x":20.969696969697,"y":64.910270326942},{"x":21.1818181818182,"y":66.0633872009973},{"x":21.3939393939394,"y":67.2351539528577},{"x":21.6060606060606,"y":68.4262886480909},{"x":21.8181818181818,"y":69.6375093522643},{"x":22.030303030303,"y":70.8695511931225},{"x":22.2424242424242,"y":72.1238873507672},{"x":22.4545454545455,"y":73.400698488684},{"x":22.6666666666667,"y":74.699390337978},{"x":22.8787878787879,"y":76.0193686297541},{"x":23.0909090909091,"y":77.3600390951174},{"x":23.3030303030303,"y":78.7208074651729},{"x":23.5151515151515,"y":80.1010794710256},{"x":23.7272727272727,"y":81.5002608437805},{"x":23.9393939393939,"y":82.9177573145426},{"x":24.1515151515152,"y":84.3529746144169},{"x":24.3636363636364,"y":85.8053184745084},{"x":24.5757575757576,"y":87.2741946259222},{"x":24.7878787878788,"y":88.7590087997632},{"x":25,"y":90.2591667271365}]}],"dataLabels":{"enabled":false},"xaxis":{"type":"numeric","min":0,"max":25,"tickAmount":5,"crosshairs":{"show":true,"stroke":{"dashArray":0}},"labels":{"style":{"colors":"#848484"}}},"yaxis":{"min":0,"max":120,"tickAmount":6,"labels":{"formatter":"function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}","style":{"colors":"#848484"}},"tooltip":{"enabled":true}},"grid":{"xaxis":{"lines":{"show":true}}},"markers":{"size":[6,0]},"stroke":{"curve":"straight"}},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":4,"max":25},"type":"scatter","mixed_type":"scatter"},"evals":["ax_opts.yaxis.labels.formatter"],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">cars</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">speed</span>, <span class="va">dist</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"scatter"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_smooth_line</span><span class="op">(</span>model <span class="op">=</span> <span class="st">"loess"</span>, degree <span class="op">=</span> <span class="fl">1</span><span class="op">)</span></span>
<div id="htmlwidget-d2b653536638a31d9f6d" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-d2b653536638a31d9f6d">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"dist","type":"scatter","data":[{"x":4,"y":2},{"x":4,"y":10},{"x":7,"y":4},{"x":7,"y":22},{"x":8,"y":16},{"x":9,"y":10},{"x":10,"y":18},{"x":10,"y":26},{"x":10,"y":34},{"x":11,"y":17},{"x":11,"y":28},{"x":12,"y":14},{"x":12,"y":20},{"x":12,"y":24},{"x":12,"y":28},{"x":13,"y":26},{"x":13,"y":34},{"x":13,"y":34},{"x":13,"y":46},{"x":14,"y":26},{"x":14,"y":36},{"x":14,"y":60},{"x":14,"y":80},{"x":15,"y":20},{"x":15,"y":26},{"x":15,"y":54},{"x":16,"y":32},{"x":16,"y":40},{"x":17,"y":32},{"x":17,"y":40},{"x":17,"y":50},{"x":18,"y":42},{"x":18,"y":56},{"x":18,"y":76},{"x":18,"y":84},{"x":19,"y":36},{"x":19,"y":46},{"x":19,"y":68},{"x":20,"y":32},{"x":20,"y":48},{"x":20,"y":52},{"x":20,"y":56},{"x":20,"y":64},{"x":22,"y":66},{"x":23,"y":54},{"x":24,"y":70},{"x":24,"y":92},{"x":24,"y":93},{"x":24,"y":120},{"x":25,"y":85}]},{"name":"smooth","type":"line","data":[{"x":4,"y":3.27234011670776},{"x":4.21212121212121,"y":3.95644616944287},{"x":4.42424242424242,"y":4.63532899156682},{"x":4.63636363636364,"y":5.30978514143677},{"x":4.84848484848485,"y":5.98061117740985},{"x":5.06060606060606,"y":6.6486036578432},{"x":5.27272727272727,"y":7.31455914109397},{"x":5.48484848484848,"y":7.97927418551929},{"x":5.6969696969697,"y":8.64354534947632},{"x":5.90909090909091,"y":9.30816919132219},{"x":6.12121212121212,"y":9.97394226941403},{"x":6.33333333333333,"y":10.641661142109},{"x":6.54545454545454,"y":11.3121223677642},{"x":6.75757575757576,"y":11.9861225047369},{"x":6.96969696969697,"y":12.6644581113841},{"x":7.18181818181818,"y":13.347925746063},{"x":7.39393939393939,"y":14.0373219671307},{"x":7.60606060606061,"y":14.7334433329444},{"x":7.81818181818182,"y":15.4370864018612},{"x":8.03030303030303,"y":16.1486440935141},{"x":8.24242424242424,"y":16.8457288923785},{"x":8.45454545454546,"y":17.5204028499358},{"x":8.66666666666667,"y":18.1800678239065},{"x":8.87878787878788,"y":18.8321256720113},{"x":9.09090909090909,"y":19.483978251971},{"x":9.3030303030303,"y":20.143027421506},{"x":9.51515151515152,"y":20.8166750383372},{"x":9.72727272727273,"y":21.5123229601851},{"x":9.93939393939394,"y":22.2373730447705},{"x":10.1515151515152,"y":22.9826724795548},{"x":10.3636363636364,"y":23.7095350120756},{"x":10.5757575757576,"y":24.4219137953279},{"x":10.7878787878788,"y":25.1263996956519},{"x":11,"y":25.8295835793876},{"x":11.2121212121212,"y":26.5380563128753},{"x":11.4242424242424,"y":27.2584087624552},{"x":11.6363636363636,"y":27.9972317944672},{"x":11.8484848484848,"y":28.7611162752517},{"x":12.0606060606061,"y":29.5533803461642},{"x":12.2727272727273,"y":30.3279935535284},{"x":12.4848484848485,"y":31.0838221957963},{"x":12.6969696969697,"y":31.8413701846607},{"x":12.9090909090909,"y":32.6211414318142},{"x":13.1212121212121,"y":33.4329065758253},{"x":13.3333333333333,"y":34.2420210596529},{"x":13.5454545454545,"y":35.0484000529875},{"x":13.7575757575758,"y":35.8575366776771},{"x":13.969696969697,"y":36.6749240555696},{"x":14.1818181818182,"y":37.5417837786392},{"x":14.3939393939394,"y":38.4871816381959},{"x":14.6060606060606,"y":39.4535120845513},{"x":14.8181818181818,"y":40.3819583694584},{"x":15.030303030303,"y":41.2145308270968},{"x":15.2424242424242,"y":41.9579853476428},{"x":15.4545454545455,"y":42.6442351109227},{"x":15.6666666666667,"y":43.2839236727686},{"x":15.8787878787879,"y":43.8876945890122},{"x":16.0909090909091,"y":44.4661914154855},{"x":16.3030303030303,"y":45.0300577080204},{"x":16.5151515151515,"y":45.5899370224487},{"x":16.7272727272727,"y":46.1564729146023},{"x":16.9393939393939,"y":46.7403089403132},{"x":17.1515151515152,"y":47.358859114227},{"x":17.3636363636364,"y":48.0320169938337},{"x":17.5757575757576,"y":48.7525054170305},{"x":17.7878787878788,"y":49.5117018242857},{"x":18,"y":50.3009836560678},{"x":18.2121212121212,"y":51.1117283528451},{"x":18.4242424242424,"y":51.935313355086},{"x":18.6363636363636,"y":52.7631161032589},{"x":18.8484848484849,"y":53.5865140378322},{"x":19.0606060606061,"y":54.4026012047354},{"x":19.2727272727273,"y":55.2998639507359},{"x":19.4848484848485,"y":56.3004185905952},{"x":19.6969696969697,"y":57.3901889086749},{"x":19.9090909090909,"y":58.5550986893366},{"x":20.1212121212121,"y":59.7810717169417},{"x":20.3333333333333,"y":61.0540317758518},{"x":20.5454545454545,"y":62.3599026504283},{"x":20.7575757575758,"y":63.6846081250328},{"x":20.969696969697,"y":65.0140719840269},{"x":21.1818181818182,"y":66.3342180117719},{"x":21.3939393939394,"y":67.6309699926295},{"x":21.6060606060606,"y":68.8902517109612},{"x":21.8181818181818,"y":70.0979869511285},{"x":22.030303030303,"y":71.2411695790394},{"x":22.2424242424242,"y":72.3733979324719},{"x":22.4545454545455,"y":73.5287920346029},{"x":22.6666666666667,"y":74.7042987361594},{"x":22.8787878787879,"y":75.8968648878687},{"x":23.0909090909091,"y":77.1034373404579},{"x":23.3030303030303,"y":78.3209629446543},{"x":23.5151515151515,"y":79.546388551185},{"x":23.7272727272727,"y":80.7766610107772},{"x":23.9393939393939,"y":82.008727174158},{"x":24.1515151515152,"y":83.2395338920548},{"x":24.3636363636364,"y":84.4660280151945},{"x":24.5757575757576,"y":85.6851563943045},{"x":24.7878787878788,"y":86.8938658801118},{"x":25,"y":88.0891033233437}]}],"dataLabels":{"enabled":false},"xaxis":{"type":"numeric","min":0,"max":25,"tickAmount":5,"crosshairs":{"show":true,"stroke":{"dashArray":0}},"labels":{"style":{"colors":"#848484"}}},"yaxis":{"min":0,"max":120,"tickAmount":6,"labels":{"formatter":"function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}","style":{"colors":"#848484"}},"tooltip":{"enabled":true}},"grid":{"xaxis":{"lines":{"show":true}}},"markers":{"size":[6,0]},"stroke":{"curve":"straight"}},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":4,"max":25},"type":"scatter","mixed_type":"scatter"},"evals":["ax_opts.yaxis.labels.formatter"],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">cars</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">speed</span>, <span class="va">dist</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"scatter"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_smooth_line</span><span class="op">(</span>formula <span class="op">=</span> <span class="va">y</span> <span class="op">~</span> <span class="fu"><a href="https://rdrr.io/r/stats/poly.html" class="external-link">poly</a></span><span class="op">(</span><span class="va">x</span>, <span class="fl">2</span><span class="op">)</span><span class="op">)</span></span>
<div id="htmlwidget-d19b32905598a2155d6f" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-d19b32905598a2155d6f">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"dist","type":"scatter","data":[{"x":4,"y":2},{"x":4,"y":10},{"x":7,"y":4},{"x":7,"y":22},{"x":8,"y":16},{"x":9,"y":10},{"x":10,"y":18},{"x":10,"y":26},{"x":10,"y":34},{"x":11,"y":17},{"x":11,"y":28},{"x":12,"y":14},{"x":12,"y":20},{"x":12,"y":24},{"x":12,"y":28},{"x":13,"y":26},{"x":13,"y":34},{"x":13,"y":34},{"x":13,"y":46},{"x":14,"y":26},{"x":14,"y":36},{"x":14,"y":60},{"x":14,"y":80},{"x":15,"y":20},{"x":15,"y":26},{"x":15,"y":54},{"x":16,"y":32},{"x":16,"y":40},{"x":17,"y":32},{"x":17,"y":40},{"x":17,"y":50},{"x":18,"y":42},{"x":18,"y":56},{"x":18,"y":76},{"x":18,"y":84},{"x":19,"y":36},{"x":19,"y":46},{"x":19,"y":68},{"x":20,"y":32},{"x":20,"y":48},{"x":20,"y":52},{"x":20,"y":56},{"x":20,"y":64},{"x":22,"y":66},{"x":23,"y":54},{"x":24,"y":70},{"x":24,"y":92},{"x":24,"y":93},{"x":24,"y":120},{"x":25,"y":85}]},{"name":"smooth","type":"line","data":[{"x":4,"y":7.72263707515413},{"x":4.21212121212121,"y":8.0904903670885},{"x":4.42424242424242,"y":8.46733907830924},{"x":4.63636363636364,"y":8.85318320881633},{"x":4.84848484848485,"y":9.24802275860978},{"x":5.06060606060606,"y":9.65185772768959},{"x":5.27272727272727,"y":10.0646881160557},{"x":5.48484848484848,"y":10.4865139237083},{"x":5.6969696969697,"y":10.9173351506472},{"x":5.90909090909091,"y":11.3571517968724},{"x":6.12121212121212,"y":11.805963862384},{"x":6.33333333333333,"y":12.263771347182},{"x":6.54545454545454,"y":12.7305742512663},{"x":6.75757575757576,"y":13.2063725746369},{"x":6.96969696969697,"y":13.691166317294},{"x":7.18181818181818,"y":14.1849554792374},{"x":7.39393939393939,"y":14.6877400604671},{"x":7.60606060606061,"y":15.1995200609832},{"x":7.81818181818182,"y":15.7202954807857},{"x":8.03030303030303,"y":16.2500663198745},{"x":8.24242424242424,"y":16.7888325782497},{"x":8.45454545454546,"y":17.3365942559113},{"x":8.66666666666667,"y":17.8933513528592},{"x":8.87878787878788,"y":18.4591038690935},{"x":9.09090909090909,"y":19.0338518046141},{"x":9.3030303030303,"y":19.6175951594211},{"x":9.51515151515152,"y":20.2103339335144},{"x":9.72727272727273,"y":20.8120681268941},{"x":9.93939393939394,"y":21.4227977395602},{"x":10.1515151515152,"y":22.0425227715126},{"x":10.3636363636364,"y":22.6712432227514},{"x":10.5757575757576,"y":23.3089590932765},{"x":10.7878787878788,"y":23.955670383088},{"x":11,"y":24.6113770921858},{"x":11.2121212121212,"y":25.27607922057},{"x":11.4242424242424,"y":25.9497767682406},{"x":11.6363636363636,"y":26.6324697351975},{"x":11.8484848484848,"y":27.3241581214408},{"x":12.0606060606061,"y":28.0248419269705},{"x":12.2727272727273,"y":28.7345211517865},{"x":12.4848484848485,"y":29.4531957958888},{"x":12.6969696969697,"y":30.1808658592776},{"x":12.9090909090909,"y":30.9175313419526},{"x":13.1212121212121,"y":31.6631922439141},{"x":13.3333333333333,"y":32.4178485651619},{"x":13.5454545454545,"y":33.181500305696},{"x":13.7575757575758,"y":33.9541474655166},{"x":13.969696969697,"y":34.7357900446234},{"x":14.1818181818182,"y":35.5264280430167},{"x":14.3939393939394,"y":36.3260614606963},{"x":14.6060606060606,"y":37.1346902976622},{"x":14.8181818181818,"y":37.9523145539145},{"x":15.030303030303,"y":38.7789342294532},{"x":15.2424242424242,"y":39.6145493242782},{"x":15.4545454545455,"y":40.4591598383896},{"x":15.6666666666667,"y":41.3127657717874},{"x":15.8787878787879,"y":42.1753671244715},{"x":16.0909090909091,"y":43.0469638964419},{"x":16.3030303030303,"y":43.9275560876988},{"x":16.5151515151515,"y":44.8171436982419},{"x":16.7272727272727,"y":45.7157267280715},{"x":16.9393939393939,"y":46.6233051771874},{"x":17.1515151515152,"y":47.5398790455896},{"x":17.3636363636364,"y":48.4654483332782},{"x":17.5757575757576,"y":49.4000130402532},{"x":17.7878787878788,"y":50.3435731665146},{"x":18,"y":51.2961287120622},{"x":18.2121212121212,"y":52.2576796768963},{"x":18.4242424242424,"y":53.2282260610167},{"x":18.6363636363636,"y":54.2077678644235},{"x":18.8484848484849,"y":55.1963050871166},{"x":19.0606060606061,"y":56.1938377290961},{"x":19.2727272727273,"y":57.2003657903619},{"x":19.4848484848485,"y":58.2158892709141},{"x":19.6969696969697,"y":59.2404081707527},{"x":19.9090909090909,"y":60.2739224898776},{"x":20.1212121212121,"y":61.3164322282889},{"x":20.3333333333333,"y":62.3679373859865},{"x":20.5454545454545,"y":63.4284379629705},{"x":20.7575757575758,"y":64.4979339592409},{"x":20.969696969697,"y":65.5764253747976},{"x":21.1818181818182,"y":66.6639122096407},{"x":21.3939393939394,"y":67.7603944637701},{"x":21.6060606060606,"y":68.8658721371859},{"x":21.8181818181818,"y":69.9803452298881},{"x":22.030303030303,"y":71.1038137418766},{"x":22.2424242424242,"y":72.2362776731514},{"x":22.4545454545455,"y":73.3777370237127},{"x":22.6666666666667,"y":74.5281917935602},{"x":22.8787878787879,"y":75.6876419826942},{"x":23.0909090909091,"y":76.8560875911145},{"x":23.3030303030303,"y":78.0335286188211},{"x":23.5151515151515,"y":79.2199650658142},{"x":23.7272727272727,"y":80.4153969320935},{"x":23.9393939393939,"y":81.6198242176593},{"x":24.1515151515152,"y":82.8332469225114},{"x":24.3636363636364,"y":84.0556650466498},{"x":24.5757575757576,"y":85.2870785900747},{"x":24.7878787878788,"y":86.5274875527858},{"x":25,"y":87.7768919347834}]}],"dataLabels":{"enabled":false},"xaxis":{"type":"numeric","min":0,"max":25,"tickAmount":5,"crosshairs":{"show":true,"stroke":{"dashArray":0}},"labels":{"style":{"colors":"#848484"}}},"yaxis":{"min":0,"max":120,"tickAmount":6,"labels":{"formatter":"function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}","style":{"colors":"#848484"}},"tooltip":{"enabled":true}},"grid":{"xaxis":{"lines":{"show":true}}},"markers":{"size":[6,0]},"stroke":{"curve":"straight"}},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":4,"max":25},"type":"scatter","mixed_type":"scatter"},"evals":["ax_opts.yaxis.labels.formatter"],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"><span class="fu"><a href="apex.html">apex</a></span><span class="op">(</span><span class="va">cars</span>, <span class="fu"><a href="apexcharter-exports.html">aes</a></span><span class="op">(</span><span class="va">speed</span>, <span class="va">dist</span><span class="op">)</span>, type <span class="op">=</span> <span class="st">"scatter"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_smooth_line</span><span class="op">(</span>model <span class="op">=</span> <span class="st">"lm"</span>, serie_name <span class="op">=</span> <span class="st">"lm"</span><span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span>
<span class="r-in"> <span class="fu">add_smooth_line</span><span class="op">(</span>model <span class="op">=</span> <span class="st">"loess"</span>, serie_name <span class="op">=</span> <span class="st">"loess"</span><span class="op">)</span></span>
<div id="htmlwidget-5e7a1f1b7ac7bea1e191" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-5e7a1f1b7ac7bea1e191">{"x":{"ax_opts":{"chart":{"type":"line"},"series":[{"name":"dist","type":"scatter","data":[{"x":4,"y":2},{"x":4,"y":10},{"x":7,"y":4},{"x":7,"y":22},{"x":8,"y":16},{"x":9,"y":10},{"x":10,"y":18},{"x":10,"y":26},{"x":10,"y":34},{"x":11,"y":17},{"x":11,"y":28},{"x":12,"y":14},{"x":12,"y":20},{"x":12,"y":24},{"x":12,"y":28},{"x":13,"y":26},{"x":13,"y":34},{"x":13,"y":34},{"x":13,"y":46},{"x":14,"y":26},{"x":14,"y":36},{"x":14,"y":60},{"x":14,"y":80},{"x":15,"y":20},{"x":15,"y":26},{"x":15,"y":54},{"x":16,"y":32},{"x":16,"y":40},{"x":17,"y":32},{"x":17,"y":40},{"x":17,"y":50},{"x":18,"y":42},{"x":18,"y":56},{"x":18,"y":76},{"x":18,"y":84},{"x":19,"y":36},{"x":19,"y":46},{"x":19,"y":68},{"x":20,"y":32},{"x":20,"y":48},{"x":20,"y":52},{"x":20,"y":56},{"x":20,"y":64},{"x":22,"y":66},{"x":23,"y":54},{"x":24,"y":70},{"x":24,"y":92},{"x":24,"y":93},{"x":24,"y":120},{"x":25,"y":85}]},{"name":"lm","type":"line","data":[{"x":4,"y":-1.84945985401454},{"x":4.21212121212121,"y":-1.01531254147307},{"x":4.42424242424242,"y":-0.181165228931594},{"x":4.63636363636364,"y":0.652982083609881},{"x":4.84848484848485,"y":1.48712939615135},{"x":5.06060606060606,"y":2.32127670869282},{"x":5.27272727272727,"y":3.1554240212343},{"x":5.48484848484848,"y":3.98957133377577},{"x":5.6969696969697,"y":4.82371864631724},{"x":5.90909090909091,"y":5.65786595885871},{"x":6.12121212121212,"y":6.49201327140019},{"x":6.33333333333333,"y":7.32616058394166},{"x":6.54545454545454,"y":8.16030789648313},{"x":6.75757575757576,"y":8.9944552090246},{"x":6.96969696969697,"y":9.82860252156608},{"x":7.18181818181818,"y":10.6627498341075},{"x":7.39393939393939,"y":11.496897146649},{"x":7.60606060606061,"y":12.3310444591905},{"x":7.81818181818182,"y":13.165191771732},{"x":8.03030303030303,"y":13.9993390842734},{"x":8.24242424242424,"y":14.8334863968149},{"x":8.45454545454546,"y":15.6676337093564},{"x":8.66666666666667,"y":16.5017810218979},{"x":8.87878787878788,"y":17.3359283344393},{"x":9.09090909090909,"y":18.1700756469808},{"x":9.3030303030303,"y":19.0042229595223},{"x":9.51515151515152,"y":19.8383702720637},{"x":9.72727272727273,"y":20.6725175846052},{"x":9.93939393939394,"y":21.5066648971467},{"x":10.1515151515152,"y":22.3408122096882},{"x":10.3636363636364,"y":23.1749595222296},{"x":10.5757575757576,"y":24.0091068347711},{"x":10.7878787878788,"y":24.8432541473126},{"x":11,"y":25.6774014598541},{"x":11.2121212121212,"y":26.5115487723955},{"x":11.4242424242424,"y":27.345696084937},{"x":11.6363636363636,"y":28.1798433974785},{"x":11.8484848484848,"y":29.0139907100199},{"x":12.0606060606061,"y":29.8481380225614},{"x":12.2727272727273,"y":30.6822853351029},{"x":12.4848484848485,"y":31.5164326476444},{"x":12.6969696969697,"y":32.3505799601858},{"x":12.9090909090909,"y":33.1847272727273},{"x":13.1212121212121,"y":34.0188745852688},{"x":13.3333333333333,"y":34.8530218978103},{"x":13.5454545454545,"y":35.6871692103517},{"x":13.7575757575758,"y":36.5213165228932},{"x":13.969696969697,"y":37.3554638354347},{"x":14.1818181818182,"y":38.1896111479761},{"x":14.3939393939394,"y":39.0237584605176},{"x":14.6060606060606,"y":39.8579057730591},{"x":14.8181818181818,"y":40.6920530856006},{"x":15.030303030303,"y":41.526200398142},{"x":15.2424242424242,"y":42.3603477106835},{"x":15.4545454545455,"y":43.194495023225},{"x":15.6666666666667,"y":44.0286423357664},{"x":15.8787878787879,"y":44.8627896483079},{"x":16.0909090909091,"y":45.6969369608494},{"x":16.3030303030303,"y":46.5310842733909},{"x":16.5151515151515,"y":47.3652315859323},{"x":16.7272727272727,"y":48.1993788984738},{"x":16.9393939393939,"y":49.0335262110153},{"x":17.1515151515152,"y":49.8676735235568},{"x":17.3636363636364,"y":50.7018208360982},{"x":17.5757575757576,"y":51.5359681486397},{"x":17.7878787878788,"y":52.3701154611812},{"x":18,"y":53.2042627737226},{"x":18.2121212121212,"y":54.0384100862641},{"x":18.4242424242424,"y":54.8725573988056},{"x":18.6363636363636,"y":55.7067047113471},{"x":18.8484848484849,"y":56.5408520238885},{"x":19.0606060606061,"y":57.37499933643},{"x":19.2727272727273,"y":58.2091466489715},{"x":19.4848484848485,"y":59.043293961513},{"x":19.6969696969697,"y":59.8774412740544},{"x":19.9090909090909,"y":60.7115885865959},{"x":20.1212121212121,"y":61.5457358991374},{"x":20.3333333333333,"y":62.3798832116788},{"x":20.5454545454545,"y":63.2140305242203},{"x":20.7575757575758,"y":64.0481778367618},{"x":20.969696969697,"y":64.8823251493033},{"x":21.1818181818182,"y":65.7164724618447},{"x":21.3939393939394,"y":66.5506197743862},{"x":21.6060606060606,"y":67.3847670869277},{"x":21.8181818181818,"y":68.2189143994692},{"x":22.030303030303,"y":69.0530617120106},{"x":22.2424242424242,"y":69.8872090245521},{"x":22.4545454545455,"y":70.7213563370936},{"x":22.6666666666667,"y":71.555503649635},{"x":22.8787878787879,"y":72.3896509621765},{"x":23.0909090909091,"y":73.223798274718},{"x":23.3030303030303,"y":74.0579455872595},{"x":23.5151515151515,"y":74.8920928998009},{"x":23.7272727272727,"y":75.7262402123424},{"x":23.9393939393939,"y":76.5603875248839},{"x":24.1515151515152,"y":77.3945348374254},{"x":24.3636363636364,"y":78.2286821499668},{"x":24.5757575757576,"y":79.0628294625083},{"x":24.7878787878788,"y":79.8969767750498},{"x":25,"y":80.7311240875912}]},{"name":"loess","type":"line","data":[{"x":4,"y":5.89362799029165},{"x":4.21212121212121,"y":6.27184346527173},{"x":4.42424242424242,"y":6.66392146206721},{"x":4.63636363636364,"y":7.06977889431491},{"x":4.84848484848485,"y":7.48933267565164},{"x":5.06060606060606,"y":7.92249971971422},{"x":5.27272727272727,"y":8.36919694013946},{"x":5.48484848484848,"y":8.82934125056419},{"x":5.6969696969697,"y":9.30284956462521},{"x":5.90909090909091,"y":9.78963879595934},{"x":6.12121212121212,"y":10.2896258582034},{"x":6.33333333333333,"y":10.8027276649942},{"x":6.54545454545454,"y":11.3288611299686},{"x":6.75757575757576,"y":11.8679431667633},{"x":6.96969696969697,"y":12.4198906890152},{"x":7.18181818181818,"y":12.9846206103612},{"x":7.39393939393939,"y":13.5620498444379},{"x":7.60606060606061,"y":14.1520953048823},{"x":7.81818181818182,"y":14.7546739053312},{"x":8.03030303030303,"y":15.3698542114218},{"x":8.24242424242424,"y":16.0060830475401},{"x":8.45454545454546,"y":16.6658308273076},{"x":8.66666666666667,"y":17.3457030078592},{"x":8.87878787878788,"y":18.04230504633},{"x":9.09090909090909,"y":18.7522423998549},{"x":9.3030303030303,"y":19.472120525569},{"x":9.51515151515152,"y":20.1985448806073},{"x":9.72727272727273,"y":20.9281209221047},{"x":9.93939393939394,"y":21.6574541071963},{"x":10.1515151515152,"y":22.3909992176321},{"x":10.3636363636364,"y":23.1468086589726},{"x":10.5757575757576,"y":23.9223063887743},{"x":10.7878787878788,"y":24.7136544396687},{"x":11,"y":25.5170148442874},{"x":11.2121212121212,"y":26.3285496352619},{"x":11.4242424242424,"y":27.1444208452239},{"x":11.6363636363636,"y":27.9607905068049},{"x":11.8484848484848,"y":28.7738206526363},{"x":12.0606060606061,"y":29.5806727283116},{"x":12.2727272727273,"y":30.3946689534406},{"x":12.4848484848485,"y":31.2179530534194},{"x":12.6969696969697,"y":32.0463978280013},{"x":12.9090909090909,"y":32.8758760769393},{"x":13.1212121212121,"y":33.70440747121},{"x":13.3333333333333,"y":34.5381680435654},{"x":13.5454545454545,"y":35.3754350511144},{"x":13.7575757575758,"y":36.2133159309227},{"x":13.969696969697,"y":37.0489181200559},{"x":14.1818181818182,"y":37.8973531514232},{"x":14.3939393939394,"y":38.7733405868291},{"x":14.6060606060606,"y":39.65213187697},{"x":14.8181818181818,"y":40.5084020580861},{"x":15.030303030303,"y":41.3178669002805},{"x":15.2424242424242,"y":42.1215870478899},{"x":15.4545454545455,"y":42.9433979773512},{"x":15.6666666666667,"y":43.7713004699092},{"x":15.8787878787879,"y":44.5932953068086},{"x":16.0909090909091,"y":45.3973832692944},{"x":16.3030303030303,"y":46.1715651386113},{"x":16.5151515151515,"y":46.9038416960042},{"x":16.7272727272727,"y":47.5822137227179},{"x":16.9393939393939,"y":48.1946819999972},{"x":17.1515151515152,"y":48.7101743442239},{"x":17.3636363636364,"y":49.0907323283968},{"x":17.5757575757576,"y":49.3750399946966},{"x":17.7878787878788,"y":49.6055742312034},{"x":18,"y":49.8248119259973},{"x":18.2121212121212,"y":50.0752299671586},{"x":18.4242424242424,"y":50.3993052427674},{"x":18.6363636363636,"y":50.8395146409039},{"x":18.8484848484849,"y":51.4383350496483},{"x":19.0606060606061,"y":52.2303551888984},{"x":19.2727272727273,"y":53.1105080011928},{"x":19.4848484848485,"y":54.0338674846744},{"x":19.6969696969697,"y":55.0012676255404},{"x":19.9090909090909,"y":56.013542409988},{"x":20.1212121212121,"y":57.0715258242144},{"x":20.3333333333333,"y":58.1760518544167},{"x":20.5454545454545,"y":59.3279544867921},{"x":20.7575757575758,"y":60.5280677075378},{"x":20.969696969697,"y":61.7772255028509},{"x":21.1818181818182,"y":63.0762618589288},{"x":21.3939393939394,"y":64.4260107619684},{"x":21.6060606060606,"y":65.8273061981671},{"x":21.8181818181818,"y":67.2809821537219},{"x":22.030303030303,"y":68.7878193375291},{"x":22.2424242424242,"y":70.3453585939731},{"x":22.4545454545455,"y":71.9523416697846},{"x":22.6666666666667,"y":73.6094039796523},{"x":22.8787878787879,"y":75.3171809382651},{"x":23.0909090909091,"y":77.0763079603116},{"x":23.3030303030303,"y":78.8874204604805},{"x":23.5151515151515,"y":80.7511538534607},{"x":23.7272727272727,"y":82.6681435539408},{"x":23.9393939393939,"y":84.6390249766096},{"x":24.1515151515152,"y":86.6644335361558},{"x":24.3636363636364,"y":88.7450046472682},{"x":24.5757575757576,"y":90.8813737246355},{"x":24.7878787878788,"y":93.0741761829463},{"x":25,"y":95.3240474368896}]}],"dataLabels":{"enabled":false},"xaxis":{"type":"numeric","min":0,"max":25,"tickAmount":5,"crosshairs":{"show":true,"stroke":{"dashArray":0}},"labels":{"style":{"colors":"#848484"}}},"yaxis":{"min":0,"max":120,"tickAmount":6,"labels":{"formatter":"function(value) {var locale = formatLocale(JSON.parse('{ \"decimal\": \".\", \"thousands\": \",\", \"grouping\": [3], \"currency\": [\"$\", \"\"]}')); return '' + locale.format('~r')(value) + '';}","style":{"colors":"#848484"}},"tooltip":{"enabled":true}},"grid":{"xaxis":{"lines":{"show":true}}},"markers":{"size":[6,0,0]},"stroke":{"curve":"straight"}},"auto_update":{"series_animate":true,"update_options":false,"options_animate":true,"options_redrawPaths":true,"update_synced_charts":false},"sparkbox":false,"xaxis":{"min":4,"max":25},"type":"scatter","mixed_type":"scatter"},"evals":["ax_opts.yaxis.labels.formatter"],"jsHooks":[]}</script><span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"></span>
<span class="r-in"></span>
</code></pre></div>
</div>
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
</nav></aside></div>
<footer><div class="pkgdown-footer-left">
<p></p><p>Developed by <a href="https://twitter.com/_pvictorr" class="external-link"><img src="https://pbs.twimg.com/profile_images/844237339404722177/E1U61aM8_normal.jpg"> Victor Perrier</a>, <a href="https://twitter.com/_mfaan" class="external-link"><img src="https://pbs.twimg.com/profile_images/912313931326218240/o1-wvA18_normal.jpg"> Fanny Meyer</a>.</p>
</div>
<div class="pkgdown-footer-right">
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.1.</p>
</div>
</footer></div>
</body></html>