title: Gradient colored datatable rows in R Shiny
body: <p>I was wondering if we could do this in R Shiny 
  <a href="https://rstudio.github.io/DT/010-style.html" rel="noreferrer">example</a></p>
  
  <pre><code># using styleColorBar
  datatable(df) %&gt;% formatStyle(names(df),
    background = styleColorBar(range(df), 'lightblue'),
    backgroundSize = '98% 88%',
    backgroundRepeat = 'no-repeat',
    backgroundPosition = 'center')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/EAX98.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EAX98.png" alt="enter image description here"></a></p>
  
  <p>But with two colors for positive and negative values and moreover if we can do so the negative values are taken as absolute values for the length of the bar</p>
  
  <p>Ty and have a good day !</p>