powered by
replace an existing grob (in a row of a gtable) with an updated version
gtable_replace_grob(gtab, row, new_grob, name)
returns the updated gtable object
a gtable object
integer target row number within the gtable
update grob to insert into gtable
character string entry in the "name" field of gtable$layout
if(interactive()){ load("data/x_gtab.RData") load("data/x_tab.RData") load("data/x_rows.RData") ptabRow<-which(names(x_rows)=="ptabRow") gtab<-gtable_replace_grob(x_gtab,ptabRow,x_tab,name="ptab") }
Run the code above in your browser using DataLab