I would like to graph a table in R where I highlight a value with a condition of 'less than 2' in Red, for example. Any help on how I can do this?
data(iris)
iris <- iris[1:4, 1:3]
rownames(iris) <- as.character(as.yearmon(
seq(as.Date("2020/1/1"), as.Date("2020/4/1"), by = "month")))
colnames(iris) <- as.character(as.yearmon(
seq(as.Date("2020/5/1"), as.Date("2020/8/1"), by = "month")))
iris
tg <- tableGrob(iris)
grid.draw(tg)