FAQ Database Discussion Community


How to theme a tableGrob object from gridExtra in r

r,gridextra,grob
I would like to re-use a theme/template/default for a tableGrob object from the gridExtra package in r. library(gridExtra) tableGrob(df, cols = c("Custom Name", "Custom Name2"), show.rownames = FALSE, h.even.alpha = 0) tableGrob(df2, cols = c("Different Name", "Different Name2"), show.rownames = FALSE, h.even.alpha = 0) Notice, I do not want to...

Row names in tableGrob are cut off when using row.just = "left

r,table,rowname,grob
Can anyone solve why the cutoff of row names occurs for me? It is independent of the length of the string wrap. Specifying row.just = "center" does not cut off the row names. x <- data.frame(row.names=paste("Very very name goes in here somewhere yep it is a looooonnngggg name! phew that...