tile.plot: Tile.plot Plots a matrix as tile with color according to...

Description Usage Arguments Value Examples

Description

Tile.plot Plots a matrix as tile with color according to intensity

Usage

1
2
tile.plot(adj.mat, max.color.value = 0.8, text.size = 3,
  brewer.set = "Set1")

Arguments

adj.mat

is the input matrix, with named rows and columns and numerical cells

Value

a ggplot2 tile plot

Examples

1
2
3
4
5
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)

antongrau/soc.elite documentation built on May 10, 2019, 12:25 p.m.