addStyle | R Documentation |
insert tags into HTML code to implement rotating table text
addStyle(x, m, colorMap, pawn)
x |
character vector containing HTML code |
m |
character matrix containing table that is represented in x |
colorMap |
character array of colors |
pawn |
Boolean if TRUE use chess symbols rather than rectangles in html table |
returns modified HTML code
if(interactive()){
load("data/x_x2.RData")
load("data/x_m5.RData")
load("data/x_colorMap.RData")
y<-addStyle(x_x2,x_m5,x_colorMap,pawn=TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.