gtable_replace_grob {clickableImageMap} | R Documentation |
gtable_replace_grob
Description
replace an existing grob (in a row of a gtable) with an updated version
Usage
gtable_replace_grob(gtab, row, new_grob, name)
Arguments
gtab |
a gtable object |
row |
integer target row number within the gtable |
new_grob |
update grob to insert into gtable |
name |
character string entry in the "name" field of gtable$layout |
Value
returns the updated gtable object
Examples
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")
}
[Package clickableImageMap version 1.0 Index]