Is there a way to tell tableGrob
via themes to change the color and format (make bold) of a specific line?
I get the following output using tableGrob
:
I however would like to reach the following aesthetic and make specific lines bold and change their color like this example:
Based on the following example: enter link description here
t1 <- ttheme_default(core=list(
fg_params=list(fontface=c(rep("plain", 4), "bold.italic")),
bg_params = list(fill=c(rep(c("grey95", "grey90"),
length.out=4), "#6BAED6"),
alpha = rep(c(1,0.5), each=5))
))
grid.table(iris[1:5, 1:3], theme = t1)
The color of the row is changed every 4 lines. which results to this: result
However, I need to make it specific based on condition.