【发布时间】:2020-06-30 16:02:29
【问题描述】:
我之前应用了这个代码,结果并不完全符合预期,因为matching_probability 部分没有显示颜色图块。 我无法添加图片,否则我会显示。
formattable(df,
align = c("l","c","c","c","c","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, customGreen0),
`Power_of_Exclusion`= color_tile(customGreen, customGreen0),
`Paternity_Index` = color_bar(customRed)
))
【问题讨论】:
标签: r formattable aesthetics