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.