| gtable_show_grill {lemon} | R Documentation |
Visualises the table structure or the names of the gtable's components.
gtable_show_grill(x, plot = TRUE) gtable_show_names(x, plot = TRUE, rect.gp = gpar(col = "black", fill = "white", alpha = 1/4))
x |
A gtable object. If given a ggplot object, it is converted to a
gtable object with |
plot |
Logical. When |
rect.gp |
Graphical parameters ( |
These functions are highly similar to
gtable_show_layout.
gtable_show_grill draws the grid of the underlying table, and places
row and column indicies in the margin.
gtable_show_names replaces the grobs with a semi-transparent rectangle
and the component's name.
Modified gtable object, invisibly.
library(ggplot2) library(gtable) library(grid) p <- ggplot(mtcars, aes(wt, mpg)) + geom_point() gtable_show_grill(p) library(ggplot2) library(gtable) library(grid) p <- ggplot(mtcars, aes(wt, mpg)) + geom_point() gtable_show_names(p)