title: Median Absolute Deviation: setting constant factor to 1 in stat_summary (ggplot2)
body: <p>When calculating the median absolute deviation (MAD) via <code>fun.data = median_mad</code> using the function <code>stat_summary</code> in <code>ggplot2</code>, the constant factor is set to 1.4826 by default. However, I want to s<strong>et the constant factor to 1 in the <code>stat_summary</code> function</strong>.</p>
  <p>When calculating the MAD individually using the <code>mad</code> function, it can be adjusted easily by changing
  <code>mad(x, center = median(x), constant = 1.4826)</code> to <code>mad(x, center = median(x), constant = 1)</code>
  But how can this be done in summary statistics for a dataframe with 6 factor levels?</p>
  <p>The command I use for plotting this is:</p>
  <pre><code>graph+
  stat_summary(fun.data = median_mad, geom = &quot;linerange&quot;)
  </code></pre>
  <p>Thank you!</p>