0

I am trying to use reactablefmtr's icon_sets feature to show red up arrows when the value is positive and green down arrows when the value is negative. However, I am getting a green down arrow for slightly positive values. I believe it is because the default setting - when 2 icons are declared - is to use the upper and lower 50% instead of less than zero and greater than 0.

Can anyone help me adjust these settings?

Attached is the screenshot to show the erroneous arrow. enter image description here

Here is my code:

cell = icon_sets(data,
 icons=c("down-long","up-long"),
 colors=c("#f77f34", "#f03535"),
 number_fmt = scales::label_percent(accuracy = 0.1))

I tried looking through the reference documents for reactablefmtr but didn't find a clear answer.

Julian
  • 6,586
  • 2
  • 9
  • 33
  • 2
    Hello Steven and welcome to SO! First, I recomend you to read this quiestion about how to make a great reproductible example: stackoverflow.com/questions/5963269/…. Always try to post some example data, so that others can replicate what you are doing. – Santiago Capobianco Dec 16 '22 at 16:42

0 Answers0