Customizing font colour of one column for a tableGrob in R?

后端 未结 1 721
情歌与酒
情歌与酒 2021-01-21 02:21

I would like to customise the font colour of one particular column in my tableGrob.

Here is the original table, and this is what I would like the table to look like with

1条回答
  •  别那么骄傲
    2021-01-21 03:06

    colours are recycled columnwise, so if you want different colours for different columns you need to pass a full matrix of colours, e.g.

    colours <- matrix("black", nrow(count), ncol(count))
    colours[2:nrow(colours), ncol(colours)] <- "white"
    

    0 讨论(0)
提交回复
热议问题