powered by
zebra
zebra(x, col = c("#FFFFFF", "#CCCCCC"), byrow = TRUE)
html_matrix object
a vector of colors to zebra with (default:c("#FFFFFF", "#CCCCCC"))
c("#FFFFFF", "#CCCCCC")
logical: zebra by row or by column (default: TRUE)
TRUE
library("magrittr") library("tools") m <- matrix(1:12, ncol=4) hm <- html_matrix(m) %>% zebra() html <- toHTML(hm, browser=interactive())
Run the code above in your browser using DataLab