apexcharter/reference/add-line.html

227 lines
64 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.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/Poppins-0.4.9/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.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></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.6.4/htmlwidgets.js"></script><script src="libs/apexcharter-binding-0.4.1.9300/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.4.1.9300</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbar" class="collapse navbar-collapse ms-3">
<ul class="navbar-nav me-auto"><li class="nav-item">
<a class="nav-link" href="../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><span class="fu">add_line</span><span class="op">(</span></span>
<span> <span class="va">ax</span>,</span>
<span> <span class="va">mapping</span>,</span>
<span> data <span class="op">=</span> <span class="cn">NULL</span>,</span>
<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>,</span>
<span> serie_name <span class="op">=</span> <span class="cn">NULL</span></span>
<span><span class="op">)</span></span>
<span></span>
<span><span class="fu">add_smooth_line</span><span class="op">(</span></span>
<span> <span class="va">ax</span>,</span>
<span> formula <span class="op">=</span> <span class="va">y</span> <span class="op">~</span> <span class="va">x</span>,</span>
<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>,</span>
<span> n <span class="op">=</span> <span class="fl">100</span>,</span>
<span> <span class="va">...</span>,</span>
<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>,</span>
<span> serie_name <span class="op">=</span> <span class="cn">NULL</span></span>
<span><span class="op">)</span></span></code></pre></div>
</div>
<div class="section level2">
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
<dl><dt>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></p>
<p></p>
<p><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><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>
<span class="r-in"><span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Bar ----</span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><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>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Add a line on a column's chart</span></span></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <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></span>
<div id="htmlwidget-ac96cb3ee4656e2e9ec3" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-ac96cb3ee4656e2e9ec3">{"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,"isDumbbell":false}},"tooltip":{"shared":true,"intersect":false,"followCursor":true},"grid":{"yaxis":{"lines":{"show":true}},"xaxis":{"lines":{"show":false}}},"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></span>
<span class="r-in"><span><span class="co"># Add secondary axis</span></span></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <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>
<span class="r-in"><span> <span class="fu"><a href="ax_yaxis.html">ax_yaxis</a></span><span class="op">(</span></span></span>
<span class="r-in"><span> 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>
<span class="r-in"><span> <span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span></span>
<span class="r-in"><span> <span class="fu"><a href="ax_yaxis2.html">ax_yaxis2</a></span><span class="op">(</span></span></span>
<span class="r-in"><span> opposite <span class="op">=</span> <span class="cn">TRUE</span>,</span></span>
<span class="r-in"><span> decimalsInFloat <span class="op">=</span> <span class="fl">0</span>,</span></span>
<span class="r-in"><span> 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>
<span class="r-in"><span> <span class="op">)</span> <span class="op"><a href="apexcharter-exports.html">%&gt;%</a></span> </span></span>
<span class="r-in"><span> <span class="fu"><a href="ax_dataLabels.html">ax_dataLabels</a></span><span class="op">(</span></span></span>
<span class="r-in"><span> 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>
<span class="r-in"><span> <span class="op">)</span></span></span>
<div id="htmlwidget-e5c8c404fe174e4c81bd" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-e5c8c404fe174e4c81bd">{"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,"isDumbbell":false}},"tooltip":{"shared":true,"intersect":false,"followCursor":true},"grid":{"yaxis":{"lines":{"show":true}},"xaxis":{"lines":{"show":false}}},"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></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Scatter ----</span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># add smooth line on scatter plot</span></span></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <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></span>
<div id="htmlwidget-36aa3d2a04d42bbc2145" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-36aa3d2a04d42bbc2145">{"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.965459277186882},{"x":4,"y":4.965459277186882},{"x":7,"y":13.12449503966645},{"x":7,"y":13.12449503966645},{"x":8,"y":15.85863338209832},{"x":9,"y":18.57969051421773},{"x":10,"y":21.28031257852845},{"x":10,"y":21.28031257852845},{"x":10,"y":21.28031257852845},{"x":11,"y":24.12927714892649},{"x":11,"y":24.12927714892649},{"x":12,"y":27.11954855060354},{"x":12,"y":27.11954855060354},{"x":12,"y":27.11954855060354},{"x":12,"y":27.11954855060354},{"x":13,"y":30.02727633115396},{"x":13,"y":30.02727633115396},{"x":13,"y":30.02727633115396},{"x":13,"y":30.02727633115396},{"x":14,"y":32.96250613615763},{"x":14,"y":32.96250613615763},{"x":14,"y":32.96250613615763},{"x":14,"y":32.96250613615763},{"x":15,"y":36.75772834164972},{"x":15,"y":36.75772834164972},{"x":15,"y":36.75772834164972},{"x":16,"y":40.43507456198874},{"x":16,"y":40.43507456198874},{"x":17,"y":43.46349178181757},{"x":17,"y":43.46349178181757},{"x":17,"y":43.46349178181757},{"x":18,"y":46.88547894602397},{"x":18,"y":46.88547894602397},{"x":18,"y":46.88547894602397},{"x":18,"y":46.88547894602397},{"x":19,"y":50.79315172542057},{"x":19,"y":50.79315172542057},{"x":19,"y":50.79315172542057},{"x":20,"y":56.49122409287715},{"x":20,"y":56.49122409287715},{"x":20,"y":56.49122409287715},{"x":20,"y":56.49122409287715},{"x":20,"y":56.49122409287715},{"x":22,"y":67.58582423143133},{"x":23,"y":73.07969526937005},{"x":24,"y":78.64316355439986},{"x":24,"y":78.64316355439986},{"x":24,"y":78.64316355439986},{"x":24,"y":78.64316355439986},{"x":25,"y":84.32869809683419}]}],"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></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># or directly</span></span></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <span class="fu">add_smooth_line</span><span class="op">(</span><span class="op">)</span></span></span>
<div id="htmlwidget-febe03efa1a2d8d52a86" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-febe03efa1a2d8d52a86">{"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.849459854014587},{"x":4.212121212121212,"y":-1.015312541473115},{"x":4.424242424242424,"y":-0.1811652289316434},{"x":4.636363636363637,"y":0.6529820836098352},{"x":4.848484848484849,"y":1.487129396151307},{"x":5.060606060606061,"y":2.321276708692778},{"x":5.272727272727272,"y":3.15542402123425},{"x":5.484848484848484,"y":3.989571333775721},{"x":5.696969696969697,"y":4.823718646317197},{"x":5.909090909090909,"y":5.657865958858672},{"x":6.121212121212121,"y":6.492013271400143},{"x":6.333333333333334,"y":7.326160583941618},{"x":6.545454545454545,"y":8.160307896483086},{"x":6.757575757575758,"y":8.994455209024562},{"x":6.96969696969697,"y":9.828602521566037},{"x":7.181818181818182,"y":10.66274983410751},{"x":7.393939393939394,"y":11.49689714664898},{"x":7.606060606060606,"y":12.33104445919045},{"x":7.818181818181818,"y":13.16519177173193},{"x":8.030303030303031,"y":13.9993390842734},{"x":8.242424242424242,"y":14.83348639681487},{"x":8.454545454545455,"y":15.66763370935635},{"x":8.666666666666668,"y":16.50178102189782},{"x":8.878787878787879,"y":17.33592833443929},{"x":9.09090909090909,"y":18.17007564698076},{"x":9.303030303030303,"y":19.00422295952223},{"x":9.515151515151516,"y":19.83837027206371},{"x":9.727272727272727,"y":20.67251758460518},{"x":9.939393939393939,"y":21.50666489714666},{"x":10.15151515151515,"y":22.34081220968813},{"x":10.36363636363636,"y":23.1749595222296},{"x":10.57575757575758,"y":24.00910683477108},{"x":10.78787878787879,"y":24.84325414731255},{"x":11,"y":25.67740145985402},{"x":11.21212121212121,"y":26.51154877239549},{"x":11.42424242424243,"y":27.34569608493697},{"x":11.63636363636364,"y":28.17984339747844},{"x":11.84848484848485,"y":29.01399071001991},{"x":12.06060606060606,"y":29.84813802256138},{"x":12.27272727272727,"y":30.68228533510286},{"x":12.48484848484848,"y":31.51643264764433},{"x":12.6969696969697,"y":32.35057996018581},{"x":12.90909090909091,"y":33.18472727272729},{"x":13.12121212121212,"y":34.01887458526875},{"x":13.33333333333333,"y":34.85302189781022},{"x":13.54545454545454,"y":35.6871692103517},{"x":13.75757575757576,"y":36.52131652289317},{"x":13.96969696969697,"y":37.35546383543465},{"x":14.18181818181818,"y":38.18961114797611},{"x":14.39393939393939,"y":39.02375846051758},{"x":14.60606060606061,"y":39.85790577305906},{"x":14.81818181818182,"y":40.69205308560053},{"x":15.03030303030303,"y":41.52620039814201},{"x":15.24242424242424,"y":42.36034771068348},{"x":15.45454545454546,"y":43.19449502322496},{"x":15.66666666666667,"y":44.02864233576643},{"x":15.87878787878788,"y":44.8627896483079},{"x":16.09090909090909,"y":45.69693696084938},{"x":16.3030303030303,"y":46.53108427339086},{"x":16.51515151515152,"y":47.36523158593232},{"x":16.72727272727273,"y":48.1993788984738},{"x":16.93939393939394,"y":49.03352621101526},{"x":17.15151515151515,"y":49.86767352355675},{"x":17.36363636363636,"y":50.70182083609821},{"x":17.57575757575758,"y":51.5359681486397},{"x":17.78787878787879,"y":52.37011546118116},{"x":18,"y":53.20426277372263},{"x":18.21212121212121,"y":54.03841008626411},{"x":18.42424242424242,"y":54.87255739880557},{"x":18.63636363636364,"y":55.70670471134706},{"x":18.84848484848485,"y":56.54085202388853},{"x":19.06060606060606,"y":57.37499933643001},{"x":19.27272727272727,"y":58.20914664897147},{"x":19.48484848484848,"y":59.04329396151294},{"x":19.6969696969697,"y":59.87744127405441},{"x":19.90909090909091,"y":60.71158858659589},{"x":20.12121212121212,"y":61.54573589913736},{"x":20.33333333333333,"y":62.37988321167883},{"x":20.54545454545455,"y":63.21403052422032},{"x":20.75757575757576,"y":64.04817783676178},{"x":20.96969696969697,"y":64.88232514930326},{"x":21.18181818181818,"y":65.71647246184473},{"x":21.39393939393939,"y":66.55061977438621},{"x":21.60606060606061,"y":67.38476708692767},{"x":21.81818181818182,"y":68.21891439946916},{"x":22.03030303030303,"y":69.05306171201062},{"x":22.24242424242424,"y":69.88720902455209},{"x":22.45454545454546,"y":70.72135633709357},{"x":22.66666666666667,"y":71.55550364963504},{"x":22.87878787878788,"y":72.38965096217652},{"x":23.09090909090909,"y":73.22379827471798},{"x":23.3030303030303,"y":74.05794558725947},{"x":23.51515151515152,"y":74.89209289980093},{"x":23.72727272727273,"y":75.7262402123424},{"x":23.93939393939394,"y":76.56038752488388},{"x":24.15151515151515,"y":77.39453483742535},{"x":24.36363636363636,"y":78.22868214996682},{"x":24.57575757575758,"y":79.0628294625083},{"x":24.78787878787879,"y":79.89697677504977},{"x":25,"y":80.73112408759124}]}],"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></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <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></span>
<div id="htmlwidget-1fb4450895fe099f74a1" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-1fb4450895fe099f74a1">{"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.068501654078753},{"x":4.212121212121212,"y":4.688779871430851},{"x":4.424242424242424,"y":5.312317879562883},{"x":4.636363636363637,"y":5.939113342918606},{"x":4.848484848484849,"y":6.56916392594178},{"x":5.060606060606061,"y":7.202467293076166},{"x":5.272727272727272,"y":7.839021108765521},{"x":5.484848484848484,"y":8.47882303745361},{"x":5.696969696969697,"y":9.121870743584193},{"x":5.909090909090909,"y":9.768161891601022},{"x":6.121212121212121,"y":10.41769414594786},{"x":6.333333333333334,"y":11.07046517106848},{"x":6.545454545454545,"y":11.72647263140661},{"x":6.757575757575758,"y":12.38571419140605},{"x":6.96969696969697,"y":13.04818751551053},{"x":7.181818181818182,"y":13.71389026816382},{"x":7.393939393939394,"y":14.38282011380969},{"x":7.606060606060606,"y":15.05497471689188},{"x":7.818181818181818,"y":15.73035174185416},{"x":8.030303030303031,"y":16.40894885314029},{"x":8.242424242424242,"y":17.09076371519403},{"x":8.454545454545455,"y":17.77579399245913},{"x":8.666666666666668,"y":18.46403734937937},{"x":8.878787878787879,"y":19.1554914503985},{"x":9.09090909090909,"y":19.85015395996026},{"x":9.303030303030303,"y":20.54802254250845},{"x":9.515151515151516,"y":21.2490948624868},{"x":9.727272727272727,"y":21.95336858433907},{"x":9.939393939393939,"y":22.66084137250904},{"x":10.15151515151515,"y":23.37261009625128},{"x":10.36363636363636,"y":24.09114183563184},{"x":10.57575757575758,"y":24.81547350980789},{"x":10.78787878787879,"y":25.54445048767638},{"x":11,"y":26.27691813813431},{"x":11.21212121212121,"y":27.01172183007865},{"x":11.42424242424243,"y":27.7477069324064},{"x":11.63636363636364,"y":28.4837188140145},{"x":11.84848484848485,"y":29.21860284379995},{"x":12.06060606060606,"y":29.95265315652944},{"x":12.27272727272727,"y":30.70822730743365},{"x":12.48484848484848,"y":31.4883136286001},{"x":12.6969696969697,"y":32.2863891762583},{"x":12.90909090909091,"y":33.09593100663775},{"x":13.12121212121212,"y":33.91041617596795},{"x":13.33333333333333,"y":34.7233217404784},{"x":13.54545454545454,"y":35.52812475639863},{"x":13.75757575757576,"y":36.3183022799581},{"x":13.96969696969697,"y":37.08733136738635},{"x":14.18181818181818,"y":37.79504906365921},{"x":14.39393939393939,"y":38.41554455754869},{"x":14.60606060606061,"y":39.00657162015801},{"x":14.81818181818182,"y":39.62704103103226},{"x":15.03030303030303,"y":40.33355174478542},{"x":15.24242424242424,"y":41.03570208465078},{"x":15.45454545454546,"y":41.6757534926082},{"x":15.66666666666667,"y":42.27452934442941},{"x":15.87878787878788,"y":42.85285301588612},{"x":16.09090909090909,"y":43.43154788275009},{"x":16.3030303030303,"y":44.03143732079302},{"x":16.51515151515152,"y":44.67334470578665},{"x":16.72727272727273,"y":45.37809341350271},{"x":16.93939393939394,"y":46.16650681971291},{"x":17.15151515151515,"y":47.02901049899855},{"x":17.36363636363636,"y":47.89437412607851},{"x":17.57575757575758,"y":48.76213261441983},{"x":17.78787878787879,"y":49.63645797651972},{"x":18,"y":50.5215222248755},{"x":18.21212121212121,"y":51.42149737198441},{"x":18.42424242424242,"y":52.34055543034371},{"x":18.63636363636364,"y":53.28286841245071},{"x":18.84848484848485,"y":54.25260833080266},{"x":19.06060606060606,"y":55.25298214302099},{"x":19.27272727272727,"y":56.27056306737203},{"x":19.48484848484848,"y":57.30033127941984},{"x":19.6969696969697,"y":58.34300484473201},{"x":19.90909090909091,"y":59.39930182887616},{"x":20.12121212121212,"y":60.46994029741986},{"x":20.33333333333333,"y":61.5556383159307},{"x":20.54545454545455,"y":62.65711394997627},{"x":20.75757575757576,"y":63.77508526512418},{"x":20.96969696969697,"y":64.91027032694198},{"x":21.18181818181818,"y":66.06338720099734},{"x":21.39393939393939,"y":67.2351539528578},{"x":21.60606060606061,"y":68.42628864809095},{"x":21.81818181818182,"y":69.6375093522644},{"x":22.03030303030303,"y":70.86955119312252},{"x":22.24242424242424,"y":72.12388735076721},{"x":22.45454545454546,"y":73.40069848868409},{"x":22.66666666666667,"y":74.69939033797804},{"x":22.87878787878788,"y":76.01936862975418},{"x":23.09090909090909,"y":77.36003909511749},{"x":23.3030303030303,"y":78.720807465173},{"x":23.51515151515152,"y":80.10107947102563},{"x":23.72727272727273,"y":81.5002608437805},{"x":23.93939393939394,"y":82.91775731454261},{"x":24.15151515151515,"y":84.35297461441689},{"x":24.36363636363636,"y":85.80531847450841},{"x":24.57575757575758,"y":87.27419462592221},{"x":24.78787878787879,"y":88.75900879976324},{"x":25,"y":90.25916672713653}]}],"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></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <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></span>
<div id="htmlwidget-10b3b7155e8045a1b2ad" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-10b3b7155e8045a1b2ad">{"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.27234011670773},{"x":4.212121212121212,"y":3.95644616944284},{"x":4.424242424242424,"y":4.635328991566799},{"x":4.636363636363637,"y":5.30978514143675},{"x":4.848484848484849,"y":5.980611177409829},{"x":5.060606060606061,"y":6.648603657843183},{"x":5.272727272727272,"y":7.314559141093953},{"x":5.484848484848484,"y":7.979274185519277},{"x":5.696969696969697,"y":8.643545349476305},{"x":5.909090909090909,"y":9.308169191322172},{"x":6.121212121212121,"y":9.973942269414021},{"x":6.333333333333334,"y":10.64166114210899},{"x":6.545454545454545,"y":11.31212236776423},{"x":6.757575757575758,"y":11.98612250473689},{"x":6.96969696969697,"y":12.66445811138408},{"x":7.181818181818182,"y":13.34792574606297},{"x":7.393939393939394,"y":14.0373219671307},{"x":7.606060606060606,"y":14.7334433329444},{"x":7.818181818181818,"y":15.43708640186122},{"x":8.030303030303031,"y":16.14864409351407},{"x":8.242424242424242,"y":16.8457288923785},{"x":8.454545454545455,"y":17.52040284993576},{"x":8.666666666666668,"y":18.18006782390649},{"x":8.878787878787879,"y":18.83212567201134},{"x":9.09090909090909,"y":19.48397825197097},{"x":9.303030303030303,"y":20.14302742150604},{"x":9.515151515151516,"y":20.81667503833722},{"x":9.727272727272727,"y":21.51232296018514},{"x":9.939393939393939,"y":22.23737304477048},{"x":10.15151515151515,"y":22.98267247955477},{"x":10.36363636363636,"y":23.70953501207556},{"x":10.57575757575758,"y":24.42191379532787},{"x":10.78787878787879,"y":25.12639969565184},{"x":11,"y":25.82958357938761},{"x":11.21212121212121,"y":26.53805631287532},{"x":11.42424242424243,"y":27.25840876245515},{"x":11.63636363636364,"y":27.99723179446719},{"x":11.84848484848485,"y":28.76111627525162},{"x":12.06060606060606,"y":29.55338034616417},{"x":12.27272727272727,"y":30.32799355352833},{"x":12.48484848484848,"y":31.08382219579632},{"x":12.6969696969697,"y":31.84137018466075},{"x":12.90909090909091,"y":32.62114143181417},{"x":13.12121212121212,"y":33.43290657582531},{"x":13.33333333333333,"y":34.24202105965291},{"x":13.54545454545454,"y":35.04840005298755},{"x":13.75757575757576,"y":35.85753667767714},{"x":13.96969696969697,"y":36.6749240555696},{"x":14.18181818181818,"y":37.54178377863914},{"x":14.39393939393939,"y":38.48718163819591},{"x":14.60606060606061,"y":39.45351208455126},{"x":14.81818181818182,"y":40.38195836945836},{"x":15.03030303030303,"y":41.21453082709676},{"x":15.24242424242424,"y":41.95798534764276},{"x":15.45454545454546,"y":42.64423511092274},{"x":15.66666666666667,"y":43.2839236727686},{"x":15.87878787878788,"y":43.88769458901223},{"x":16.09090909090909,"y":44.46619141548552},{"x":16.3030303030303,"y":45.03005770802037},{"x":16.51515151515152,"y":45.58993702244866},{"x":16.72727272727273,"y":46.1564729146023},{"x":16.93939393939394,"y":46.74030894031319},{"x":17.15151515151515,"y":47.35885911422699},{"x":17.36363636363636,"y":48.0320169938337},{"x":17.57575757575758,"y":48.7525054170305},{"x":17.78787878787879,"y":49.51170182428572},{"x":18,"y":50.3009836560678},{"x":18.21212121212121,"y":51.11172835284508},{"x":18.42424242424242,"y":51.93531335508598},{"x":18.63636363636364,"y":52.76311610325887},{"x":18.84848484848485,"y":53.58651403783215},{"x":19.06060606060606,"y":54.40260120473538},{"x":19.27272727272727,"y":55.29986395073585},{"x":19.48484848484848,"y":56.30041859059518},{"x":19.6969696969697,"y":57.39018890867492},{"x":19.90909090909091,"y":58.5550986893366},{"x":20.12121212121212,"y":59.78107171694171},{"x":20.33333333333333,"y":61.05403177585178},{"x":20.54545454545455,"y":62.35990265042832},{"x":20.75757575757576,"y":63.68460812503286},{"x":20.96969696969697,"y":65.0140719840269},{"x":21.18181818181818,"y":66.33421801177197},{"x":21.39393939393939,"y":67.63096999262957},{"x":21.60606060606061,"y":68.89025171096125},{"x":21.81818181818182,"y":70.09798695112852},{"x":22.03030303030303,"y":71.24116957903946},{"x":22.24242424242424,"y":72.37339793247195},{"x":22.45454545454546,"y":73.52879203460289},{"x":22.66666666666667,"y":74.7042987361594},{"x":22.87878787878788,"y":75.89686488786869},{"x":23.09090909090909,"y":77.1034373404579},{"x":23.3030303030303,"y":78.32096294465433},{"x":23.51515151515152,"y":79.54638855118499},{"x":23.72727272727273,"y":80.77666101077716},{"x":23.93939393939394,"y":82.00872717415804},{"x":24.15151515151515,"y":83.23953389205474},{"x":24.36363636363636,"y":84.46602801519447},{"x":24.57575757575758,"y":85.68515639430443},{"x":24.78787878787879,"y":86.89386588011176},{"x":25,"y":88.08910332334366}]}],"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></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <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></span>
<div id="htmlwidget-4018eef1a407a0df6b52" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-4018eef1a407a0df6b52">{"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.722637075154104},{"x":4.212121212121212,"y":8.09049036708848},{"x":4.424242424242424,"y":8.467339078309205},{"x":4.636363636363637,"y":8.853183208816295},{"x":4.848484848484849,"y":9.248022758609753},{"x":5.060606060606061,"y":9.651857727689556},{"x":5.272727272727272,"y":10.06468811605571},{"x":5.484848484848484,"y":10.48651392370824},{"x":5.696969696969697,"y":10.91733515064713},{"x":5.909090909090909,"y":11.35715179687237},{"x":6.121212121212121,"y":11.80596386238397},{"x":6.333333333333334,"y":12.26377134718193},{"x":6.545454545454545,"y":12.73057425126625},{"x":6.757575757575758,"y":13.20637257463692},{"x":6.96969696969697,"y":13.69116631729397},{"x":7.181818181818182,"y":14.18495547923736},{"x":7.393939393939394,"y":14.68774006046711},{"x":7.606060606060606,"y":15.19952006098323},{"x":7.818181818181818,"y":15.7202954807857},{"x":8.030303030303031,"y":16.25006631987453},{"x":8.242424242424242,"y":16.78883257824971},{"x":8.454545454545455,"y":17.33659425591127},{"x":8.666666666666668,"y":17.89335135285917},{"x":8.878787878787879,"y":18.45910386909344},{"x":9.09090909090909,"y":19.03385180461406},{"x":9.303030303030303,"y":19.61759515942104},{"x":9.515151515151516,"y":20.21033393351439},{"x":9.727272727272727,"y":20.81206812689408},{"x":9.939393939393939,"y":21.42279773956015},{"x":10.15151515151515,"y":22.04252277151256},{"x":10.36363636363636,"y":22.67124322275134},{"x":10.57575757575758,"y":23.30895909327647},{"x":10.78787878787879,"y":23.95567038308797},{"x":11,"y":24.61137709218582},{"x":11.21212121212121,"y":25.27607922057003},{"x":11.42424242424243,"y":25.94977676824061},{"x":11.63636363636364,"y":26.63246973519754},{"x":11.84848484848485,"y":27.32415812144082},{"x":12.06060606060606,"y":28.02484192697047},{"x":12.27272727272727,"y":28.73452115178647},{"x":12.48484848484848,"y":29.45319579588883},{"x":12.6969696969697,"y":30.18086585927757},{"x":12.90909090909091,"y":30.91753134195265},{"x":13.12121212121212,"y":31.66319224391409},{"x":13.33333333333333,"y":32.41784856516189},{"x":13.54545454545454,"y":33.18150030569604},{"x":13.75757575757576,"y":33.95414746551656},{"x":13.96969696969697,"y":34.73579004462344},{"x":14.18181818181818,"y":35.52642804301667},{"x":14.39393939393939,"y":36.32606146069627},{"x":14.60606060606061,"y":37.13469029766222},{"x":14.81818181818182,"y":37.95231455391453},{"x":15.03030303030303,"y":38.7789342294532},{"x":15.24242424242424,"y":39.61454932427822},{"x":15.45454545454546,"y":40.45915983838961},{"x":15.66666666666667,"y":41.31276577178736},{"x":15.87878787878788,"y":42.17536712447146},{"x":16.09090909090909,"y":43.04696389644194},{"x":16.3030303030303,"y":43.92755608769875},{"x":16.51515151515152,"y":44.81714369824194},{"x":16.72727272727273,"y":45.71572672807147},{"x":16.93939393939394,"y":46.62330517718736},{"x":17.15151515151515,"y":47.53987904558963},{"x":17.36363636363636,"y":48.46544833327825},{"x":17.57575757575758,"y":49.40001304025323},{"x":17.78787878787879,"y":50.34357316651456},{"x":18,"y":51.29612871206224},{"x":18.21212121212121,"y":52.25767967689629},{"x":18.42424242424242,"y":53.22822606101669},{"x":18.63636363636364,"y":54.20776786442347},{"x":18.84848484848485,"y":55.19630508711662},{"x":19.06060606060606,"y":56.1938377290961},{"x":19.27272727272727,"y":57.20036579036194},{"x":19.48484848484848,"y":58.21588927091413},{"x":19.6969696969697,"y":59.24040817075269},{"x":19.90909090909091,"y":60.27392248987763},{"x":20.12121212121212,"y":61.3164322282889},{"x":20.33333333333333,"y":62.36793738598654},{"x":20.54545454545455,"y":63.42843796297054},{"x":20.75757575757576,"y":64.4979339592409},{"x":20.96969696969697,"y":65.57642537479761},{"x":21.18181818181818,"y":66.66391220964069},{"x":21.39393939393939,"y":67.76039446377013},{"x":21.60606060606061,"y":68.8658721371859},{"x":21.81818181818182,"y":69.98034522988807},{"x":22.03030303030303,"y":71.10381374187656},{"x":22.24242424242424,"y":72.23627767315143},{"x":22.45454545454546,"y":73.37773702371267},{"x":22.66666666666667,"y":74.52819179356025},{"x":22.87878787878788,"y":75.6876419826942},{"x":23.09090909090909,"y":76.85608759111449},{"x":23.3030303030303,"y":78.03352861882117},{"x":23.51515151515152,"y":79.21996506581418},{"x":23.72727272727273,"y":80.41539693209356},{"x":23.93939393939394,"y":81.6198242176593},{"x":24.15151515151515,"y":82.83324692251139},{"x":24.36363636363636,"y":84.05566504664985},{"x":24.57575757575758,"y":85.28707859007467},{"x":24.78787878787879,"y":86.52748755278584},{"x":25,"y":87.77689193478336}]}],"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></span>
<span class="r-in"><span><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>
<span class="r-in"><span> <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>
<span class="r-in"><span> <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></span>
<div id="htmlwidget-5b1b2f4ad92281566982" style="width:700px;height:432.632880098888px;" class="apexcharter html-widget"></div>
<script type="application/json" data-for="htmlwidget-5b1b2f4ad92281566982">{"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.849459854014587},{"x":4.212121212121212,"y":-1.015312541473115},{"x":4.424242424242424,"y":-0.1811652289316434},{"x":4.636363636363637,"y":0.6529820836098352},{"x":4.848484848484849,"y":1.487129396151307},{"x":5.060606060606061,"y":2.321276708692778},{"x":5.272727272727272,"y":3.15542402123425},{"x":5.484848484848484,"y":3.989571333775721},{"x":5.696969696969697,"y":4.823718646317197},{"x":5.909090909090909,"y":5.657865958858672},{"x":6.121212121212121,"y":6.492013271400143},{"x":6.333333333333334,"y":7.326160583941618},{"x":6.545454545454545,"y":8.160307896483086},{"x":6.757575757575758,"y":8.994455209024562},{"x":6.96969696969697,"y":9.828602521566037},{"x":7.181818181818182,"y":10.66274983410751},{"x":7.393939393939394,"y":11.49689714664898},{"x":7.606060606060606,"y":12.33104445919045},{"x":7.818181818181818,"y":13.16519177173193},{"x":8.030303030303031,"y":13.9993390842734},{"x":8.242424242424242,"y":14.83348639681487},{"x":8.454545454545455,"y":15.66763370935635},{"x":8.666666666666668,"y":16.50178102189782},{"x":8.878787878787879,"y":17.33592833443929},{"x":9.09090909090909,"y":18.17007564698076},{"x":9.303030303030303,"y":19.00422295952223},{"x":9.515151515151516,"y":19.83837027206371},{"x":9.727272727272727,"y":20.67251758460518},{"x":9.939393939393939,"y":21.50666489714666},{"x":10.15151515151515,"y":22.34081220968813},{"x":10.36363636363636,"y":23.1749595222296},{"x":10.57575757575758,"y":24.00910683477108},{"x":10.78787878787879,"y":24.84325414731255},{"x":11,"y":25.67740145985402},{"x":11.21212121212121,"y":26.51154877239549},{"x":11.42424242424243,"y":27.34569608493697},{"x":11.63636363636364,"y":28.17984339747844},{"x":11.84848484848485,"y":29.01399071001991},{"x":12.06060606060606,"y":29.84813802256138},{"x":12.27272727272727,"y":30.68228533510286},{"x":12.48484848484848,"y":31.51643264764433},{"x":12.6969696969697,"y":32.35057996018581},{"x":12.90909090909091,"y":33.18472727272729},{"x":13.12121212121212,"y":34.01887458526875},{"x":13.33333333333333,"y":34.85302189781022},{"x":13.54545454545454,"y":35.6871692103517},{"x":13.75757575757576,"y":36.52131652289317},{"x":13.96969696969697,"y":37.35546383543465},{"x":14.18181818181818,"y":38.18961114797611},{"x":14.39393939393939,"y":39.02375846051758},{"x":14.60606060606061,"y":39.85790577305906},{"x":14.81818181818182,"y":40.69205308560053},{"x":15.03030303030303,"y":41.52620039814201},{"x":15.24242424242424,"y":42.36034771068348},{"x":15.45454545454546,"y":43.19449502322496},{"x":15.66666666666667,"y":44.02864233576643},{"x":15.87878787878788,"y":44.8627896483079},{"x":16.09090909090909,"y":45.69693696084938},{"x":16.3030303030303,"y":46.53108427339086},{"x":16.51515151515152,"y":47.36523158593232},{"x":16.72727272727273,"y":48.1993788984738},{"x":16.93939393939394,"y":49.03352621101526},{"x":17.15151515151515,"y":49.86767352355675},{"x":17.36363636363636,"y":50.70182083609821},{"x":17.57575757575758,"y":51.5359681486397},{"x":17.78787878787879,"y":52.37011546118116},{"x":18,"y":53.20426277372263},{"x":18.21212121212121,"y":54.03841008626411},{"x":18.42424242424242,"y":54.87255739880557},{"x":18.63636363636364,"y":55.70670471134706},{"x":18.84848484848485,"y":56.54085202388853},{"x":19.06060606060606,"y":57.37499933643001},{"x":19.27272727272727,"y":58.20914664897147},{"x":19.48484848484848,"y":59.04329396151294},{"x":19.6969696969697,"y":59.87744127405441},{"x":19.90909090909091,"y":60.71158858659589},{"x":20.12121212121212,"y":61.54573589913736},{"x":20.33333333333333,"y":62.37988321167883},{"x":20.54545454545455,"y":63.21403052422032},{"x":20.75757575757576,"y":64.04817783676178},{"x":20.96969696969697,"y":64.88232514930326},{"x":21.18181818181818,"y":65.71647246184473},{"x":21.39393939393939,"y":66.55061977438621},{"x":21.60606060606061,"y":67.38476708692767},{"x":21.81818181818182,"y":68.21891439946916},{"x":22.03030303030303,"y":69.05306171201062},{"x":22.24242424242424,"y":69.88720902455209},{"x":22.45454545454546,"y":70.72135633709357},{"x":22.66666666666667,"y":71.55550364963504},{"x":22.87878787878788,"y":72.38965096217652},{"x":23.09090909090909,"y":73.22379827471798},{"x":23.3030303030303,"y":74.05794558725947},{"x":23.51515151515152,"y":74.89209289980093},{"x":23.72727272727273,"y":75.7262402123424},{"x":23.93939393939394,"y":76.56038752488388},{"x":24.15151515151515,"y":77.39453483742535},{"x":24.36363636363636,"y":78.22868214996682},{"x":24.57575757575758,"y":79.0628294625083},{"x":24.78787878787879,"y":79.89697677504977},{"x":25,"y":80.73112408759124}]},{"name":"loess","type":"line","data":[{"x":4,"y":5.893627990291625},{"x":4.212121212121212,"y":6.271843465271707},{"x":4.424242424242424,"y":6.663921462067189},{"x":4.636363636363637,"y":7.06977889431489},{"x":4.848484848484849,"y":7.489332675651621},{"x":5.060606060606061,"y":7.9224997197142},{"x":5.272727272727272,"y":8.369196940139444},{"x":5.484848484848484,"y":8.829341250564166},{"x":5.696969696969697,"y":9.302849564625189},{"x":5.909090909090909,"y":9.789638795959322},{"x":6.121212121212121,"y":10.28962585820338},{"x":6.333333333333334,"y":10.80272766499419},{"x":6.545454545454545,"y":11.32886112996855},{"x":6.757575757575758,"y":11.86794316676329},{"x":6.96969696969697,"y":12.41989068901522},{"x":7.181818181818182,"y":12.98462061036116},{"x":7.393939393939394,"y":13.56204984443792},{"x":7.606060606060606,"y":14.15209530488232},{"x":7.818181818181818,"y":14.75467390533117},{"x":8.030303030303031,"y":15.36985421142177},{"x":8.242424242424242,"y":16.00608304754009},{"x":8.454545454545455,"y":16.66583082730757},{"x":8.666666666666668,"y":17.3457030078592},{"x":8.878787878787879,"y":18.04230504632998},{"x":9.09090909090909,"y":18.75224239985491},{"x":9.303030303030303,"y":19.47212052556901},{"x":9.515151515151516,"y":20.19854488060726},{"x":9.727272727272727,"y":20.92812092210468},{"x":9.939393939393939,"y":21.65745410719626},{"x":10.15151515151515,"y":22.39099921763204},{"x":10.36363636363636,"y":23.14680865897256},{"x":10.57575757575758,"y":23.92230638877425},{"x":10.78787878787879,"y":24.71365443966867},{"x":11,"y":25.51701484428737},{"x":11.21212121212121,"y":26.32854963526191},{"x":11.42424242424243,"y":27.14442084522389},{"x":11.63636363636364,"y":27.96079050680483},{"x":11.84848484848485,"y":28.77382065263631},{"x":12.06060606060606,"y":29.58067272831152},{"x":12.27272727272727,"y":30.3946689534406},{"x":12.48484848484848,"y":31.21795305341941},{"x":12.6969696969697,"y":32.04639782800125},{"x":12.90909090909091,"y":32.87587607693933},{"x":13.12121212121212,"y":33.70440747121001},{"x":13.33333333333333,"y":34.53816804356539},{"x":13.54545454545454,"y":35.37543505111437},{"x":13.75757575757576,"y":36.21331593092264},{"x":13.96969696969697,"y":37.04891812005587},{"x":14.18181818181818,"y":37.8973531514232},{"x":14.39393939393939,"y":38.77334058682903},{"x":14.60606060606061,"y":39.65213187696995},{"x":14.81818181818182,"y":40.50840205808606},{"x":15.03030303030303,"y":41.31786690028051},{"x":15.24242424242424,"y":42.12158704788996},{"x":15.45454545454546,"y":42.94339797735125},{"x":15.66666666666667,"y":43.77130046990919},{"x":15.87878787878788,"y":44.59329530680863},{"x":16.09090909090909,"y":45.39738326929437},{"x":16.3030303030303,"y":46.17156513861128},{"x":16.51515151515152,"y":46.90384169600416},{"x":16.72727272727273,"y":47.58221372271785},{"x":16.93939393939394,"y":48.19468199999719},{"x":17.15151515151515,"y":48.71017434422385},{"x":17.36363636363636,"y":49.09073232839681},{"x":17.57575757575758,"y":49.3750399946966},{"x":17.78787878787879,"y":49.60557423120336},{"x":18,"y":49.8248119259973},{"x":18.21212121212121,"y":50.07522996715857},{"x":18.42424242424242,"y":50.39930524276738},{"x":18.63636363636364,"y":50.83951464090387},{"x":18.84848484848485,"y":51.43833504964825},{"x":19.06060606060606,"y":52.23035518889834},{"x":19.27272727272727,"y":53.11050800119276},{"x":19.48484848484848,"y":54.03386748467438},{"x":19.6969696969697,"y":55.00126762554041},{"x":19.90909090909091,"y":56.01354240998803},{"x":20.12121212121212,"y":57.0715258242144},{"x":20.33333333333333,"y":58.17605185441669},{"x":20.54545454545455,"y":59.32795448679211},{"x":20.75757575757576,"y":60.52806770753782},{"x":20.96969696969697,"y":61.77722550285098},{"x":21.18181818181818,"y":63.07626185892882},{"x":21.39393939393939,"y":64.42601076196846},{"x":21.60606060606061,"y":65.82730619816712},{"x":21.81818181818182,"y":67.28098215372199},{"x":22.03030303030303,"y":68.78781933752917},{"x":22.24242424242424,"y":70.34535859397313},{"x":22.45454545454546,"y":71.95234166978462},{"x":22.66666666666667,"y":73.60940397965237},{"x":22.87878787878788,"y":75.31718093826511},{"x":23.09090909090909,"y":77.07630796031157},{"x":23.3030303030303,"y":78.88742046048054},{"x":23.51515151515152,"y":80.75115385346068},{"x":23.72727272727273,"y":82.66814355394077},{"x":23.93939393939394,"y":84.63902497660959},{"x":24.15151515151515,"y":86.66443353615577},{"x":24.36363636363636,"y":88.74500464726809},{"x":24.57575757575758,"y":90.88137372463538},{"x":24.78787878787879,"y":93.07417618294625},{"x":25,"y":95.32404743688947}]}],"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></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span></span></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.7.</p>
</div>
</footer></div>
</body></html>