gtable_trim

0th

Percentile

Trim off empty cells.

Trim off empty cells.

Usage
gtable_trim(x)
Arguments
x

a gtable object

Aliases
  • gtable_trim
Examples
library(gtable) # NOT RUN { library(grid) rect <- rectGrob(gp = gpar(fill = "black")) base <- gtable(unit(c(2, 2, 2), "cm"), unit(c(2, 2, 2), "cm")) center <- gtable_add_grob(base, rect, 2, 2) plot(center) plot(gtable_trim(center)) col <- gtable_add_grob(base, rect, 1, 2, 3, 2) plot(col) plot(gtable_trim(col)) row <- gtable_add_grob(base, rect, 2, 1, 2, 3) plot(row) plot(gtable_trim(row)) # }
Documentation reproduced from package gtable, version 0.2.0, License: GPL-2

Community examples

Looks like there are no examples yet.