zebra | R Documentation |
zebra
zebra(x, col = c("#FFFFFF", "#CCCCCC"), byrow = TRUE)
x |
html_matrix object |
col |
a vector of colors to zebra with (default: |
byrow |
logical: zebra by row or by column (default: |
html_matrix object
library("magrittr")
library("tools")
m <- matrix(1:12, ncol=4)
hm <- html_matrix(m) %>% zebra()
html <- toHTML(hm, browser=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.