我早些时候应用了此代码,由于matching_probability部分未显示色块,因此结果未完全达到预期。 我无法添加图像,否则我会显示。
formattable(df,align = c("l","c","r"),list(`Locus_number` = formatter(
"span",style = ~ style(color = "grey",font.weight = "bold")),`PIC`= color_tile(customGreen,customGreen0),`Matchin_Probability`= color_tile('white','orange'),`Power_of_Discrimination`= color_tile(customGreen,`Power_of_Exclusion`= color_tile(customGreen,`Paternity_Index` = color_bar(customRed)
))