View source: R/clickableImageMap.R
gtable_replace_grob | R Documentation |
replace an existing grob (in a row of a gtable) with an updated version
gtable_replace_grob(gtab, row, new_grob, name)
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 |
returns the updated gtable object
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.