tile.plot | R Documentation |
Tile.plot Plots a matrix as tile with color according to intensity
tile.plot(adj.mat, max.color.value = 0.8, text.size = 3, brewer.set = "Set1")
adj.mat |
is the input matrix, with named rows and columns and numerical cells |
a ggplot2 tile plot
data(pe13)
mat <- data.frame(degree = pe13$Degree...1, reach = pe13$Reach, memberships = pe13$Memberships)
rownames(mat) <- as.character(pe13$Name)
adj.mat <- t(as.matrix(mat[1:20,]))
tile.plot(adj.mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.