Convert data in matrix format to grid format with key columns corresponding to for row and col names and a value colum
1 2 | matrix.to.grid(dat, row.var = "row", col.var = "col", val.var = "value",
row.values = rownames(dat), col.values = colnames(dat))
|
dat |
a data frame or matrix in matrix format |
row.var |
name of the variable corresponding to different rows |
col.var |
name of the variable corresponding to different columns |
val.var |
name of the variable corresponding to the values of the matrix |
row.values |
values of the row variable |
col.values |
values of the column variable |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.