Suppose I have a matrix like this:
set.seed(1234)
x = rnorm(10, mean=0, sd=1)
y = rnorm(10, mean=0, sd=1)
z = rnorm(10, mean=0, sd=1)
data=data.frame(rbind(x,y,z))
Is there any way I can highlight all certain cells (e.g. >0 in this case) without specifying the column?
My expected results would be like this (only positive values are highlighted):
In the real case, I have around 30 columns and it's exhausted if I try to column_spec each column one by one:
data %>%
column_spec(X1, color = "red") %>%
column_spec(X2, color = "red")
......
Thanks!