powered by
use coordinates of upper left and bottom right of matrix to construct mapping between viewport coordinates and matrix cells
calibrate(m, rows, pullDownRow)
returns a list whose components are matrices representing the upper and lower coordinates of the row and column cells
matrix
list of row heights in the gtable object
integer number of the target row in the gtable object
if(interactive()){ m<-matrix(1:20 * .05,nrow=2,ncol=10) load("data/x_rows.RData") pullDownRow<-which(names(x_rows)=="pullDownRow") load("data/x_m.RData") cal<-calibrate(x_m,x_rows,pullDownRow) }
Run the code above in your browser using DataLab